Location:
VPROP.H
Link against: versit.lib
class CParserPropertyValueDateTime : public CParserTimePropertyValue;
A date/time property value parser.
The date/time value is contained in a TVersitDateTime
object.
The UID for a date/time property value is KVersitPropertyDateTimeUid.
CBase
- Base class for all classes to be instantiated on the heap
CParserPropertyValue
- Abstract base class for all property values
CParserTimePropertyValue
- Abstract base class for all of the date/time property value classes
CParserPropertyValueDateTime
- A date/time property value parser
Defined in CParserPropertyValueDateTime
:
CParserPropertyValueDateTime()
, ConvertAllDateTimesToUTCL()
, ConvertAllUTCDateTimesToMachineLocalL()
, ExternalizeL()
, Value()
, iValue
, ~CParserPropertyValueDateTime()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CParserPropertyValue
:
Append()
,
EncodeL()
,
FoldAndWriteValueToStreamL()
,
FoldEncodeAndWriteValueToStreamL()
,
IsAsciiCharacterSetSufficient()
,
PlugIn()
,
SetPlugIn()
,
Uid()
Inherited from CParserTimePropertyValue
:
ConvertDateTime()
,
EncodeTimePeriodL()
,
EncodeVersitDateTimeL()
,
SupportsInterface()
IMPORT_C CParserPropertyValueDateTime(TVersitDateTime *aValue);
Constructs a CParserPropertyValueDateTime with a TVersitDateTime
value.
Sets the property value's UID to KVersitPropertyDateTimeUid.
|
IMPORT_C ~CParserPropertyValueDateTime();
Frees all resources owned by the property value, prior to its destruction.
inline TVersitDateTime *Value() const;
Gets a pointer to the date/time property value.
|
virtual IMPORT_C void ConvertAllDateTimesToUTCL(const TTimeIntervalSeconds &aIncrement, const CVersitDaylight *aDaylight);
Converts the object's date/time value into universal time.
The date/time is checked against the daylight saving information provided in aDaylight. If it falls inside the daylight saving period then the daylight saving offset is subtracted from the time to convert it to universal time. Otherwise aIncrement is added to the date/time to convert it to universal time.
Note that the daylight savings offset will adjust the time both for the daylight saving and for the time zone.
The function has no effect if the value is already stored as universal time.
If aDaylight is a NULL pointer then aIncrement is used.
|
virtual IMPORT_C void ConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds &aIncrement);
Converts the date/time property value into machine-local time.
This process involves adjusting the date/time value by the offset in aIncrement.
The function has no effect if the value is already stored as machine-local time.
|
virtual IMPORT_C void ExternalizeL(RWriteStream &aStream, const Versit::TEncodingAndCharset &,TInt);
Externalises the date/time property value to aStream.
|
protected: TVersitDateTime * iValue;