Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: VPROP.H
Link against: versit.lib

Class TVersitDateTime

class TVersitDateTime;

Description

Defines a Versit date and time.

This class is used throughout Versit to represent the date and time. It uses a TDateTime object to store the date/time value and records whether this value is local to the machine which originated the vCard, local to the machine on which the code is running, or universal time (UTC).

The Year(), Month() and Day() member functions of class TDateTime may be used to extract the date and time components from the TVersitDateTime::iDateTime.

Members

Defined in TVersitDateTime:
ClearFlag(), EExportLeaveAsLocalTime, EExportNullFlag, EExportTimeZoneDesignator, EIsCorrect, EIsMachineLocal, EIsUTC, EIsVCardLocal, IsFlagSet(), SetFlag(), TRelativeTime, TVersitDateTime(), TVersitDateTimeFlags, iDateTime, iRelativeTime


Construction and destruction


TVersitDateTime()

IMPORT_C TVersitDateTime(const TDateTime &aDateTime, TRelativeTime aRelativeTime);

Description

Constructs the Versit date/time object with a date/time value and a specification of whether this value is local to the machine which originated the vCard, local to the machine on which the code is running, or universal time.

Parameters

const TDateTime &aDateTime

The date/time value.

TRelativeTime aRelativeTime

The time the date/time value represents.

[Top]


Member functions


SetFlag()

inline void SetFlag(TVersitDateTimeFlags aFlag);

Description

Parameters

TVersitDateTimeFlags aFlag


IsFlagSet()

inline TBool IsFlagSet(TVersitDateTimeFlags aFlag) const;

Description

Parameters

TVersitDateTimeFlags aFlag

Return value

TBool


ClearFlag()

inline void ClearFlag(TVersitDateTimeFlags aFlag);

Description

Parameters

TVersitDateTimeFlags aFlag

[Top]


Member enumerations


Enum TRelativeTime

TRelativeTime

Description

Relative time flags.

EIsUTC

Time is stored in UTC.

EIsVCardLocal

Time is local to the machine which originated the vCard.

EIsMachineLocal

Time is local to the machine on which the code is running.

EIsCorrect

Unused.


Enum TVersitDateTimeFlags

TVersitDateTimeFlags

Description

Date/time flags.

EExportNullFlag

EExportTimeZoneDesignator

Indicates whether the relative time is to be externalized along with the date/time value.

The flag is set to 'EExportNullFlag' by default.

This is only implemented (by CParserTimePropertyValue::EncodeVersitDateTimeL()) if the date/time is universal. When the flag is set, the externalised value is followed by the token, KVersitTokenUniversalTime.

EExportLeaveAsLocalTime

[Top]


Member data


iDateTime

TDateTime iDateTime;

Description

The date/time value.


iRelativeTime

TRelativeTime iRelativeTime;

Description

Specifies whether the time value is local to the machine which originated the vCard, local to the machine on which the code is running, or universal.