class TVersitDateTime |
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.
Public Member Functions | |
---|---|
TVersitDateTime(const TDateTime &, TRelativeTime) | |
void | ClearFlag(TVersitDateTimeFlags) |
TBool | IsFlagSet(TVersitDateTimeFlags) |
void | SetFlag(TVersitDateTimeFlags) |
Public Member Enumerations | |
---|---|
enum | TRelativeTime { EIsUTC, EIsVCardLocal, EIsMachineLocal, EIsCorrect } |
enum | TVersitDateTimeFlags { EExportNullFlag = 0, EExportTimeZoneDesignator = 0x01, EExportLeaveAsLocalTime = 0x02 } |
Public Attributes | |
---|---|
TDateTime | iDateTime |
TRelativeTime | iRelativeTime |
Private Attributes | |
---|---|
TInt | iFlags |
IMPORT_C | TVersitDateTime | ( | const TDateTime & | aDateTime, |
TRelativeTime | aRelativeTime | |||
) |
const TDateTime & aDateTime | |
TRelativeTime aRelativeTime |
void | ClearFlag | ( | TVersitDateTimeFlags | aFlag | ) | [inline] |
since 9.1
TVersitDateTimeFlags aFlag |
TBool | IsFlagSet | ( | TVersitDateTimeFlags | aFlag | ) | const [inline] |
since 9.1
TVersitDateTimeFlags aFlag |
void | SetFlag | ( | TVersitDateTimeFlags | aFlag | ) | [inline] |
since 9.1
TVersitDateTimeFlags aFlag |
Date/time flags. since 9.1
EExportNullFlag = 0 | |
EExportTimeZoneDesignator = 0x01 |
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 = 0x02 |
TRelativeTime | iRelativeTime |
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.