Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: VPROP.H
Link against: versit.lib

Class CVersitDaylight

class CVersitDaylight : public CBase;

Description

Universal time offset information, including the daylight savings offset.

This class deals with the daylight saving offset: a one hour offset that occurs in many countries during part of the year. This offset needs to be taken into account when converting Versit times (TVersitDateTimes) between universal and machine-local times.

This class stores information about the offset, including its length in seconds, when it takes effect and the standard time designations.

Note that the universal offset (iOffset) is the sum of the daylight saving offset and any time zone offset, as it is the absolute offset from GMT.

An instance of this class is owned by the CParserPropertyValueDaylight class.

Derivation

Members

Defined in CVersitDaylight:
NewL(), iDaylightDesignation, iEndTime, iOffset, iSavings, iStandardDesignation, iStartTime, iStartTimeSortKey, ~CVersitDaylight()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CVersitDaylight *NewL(TBool aSavings, TTimeIntervalSeconds aOffset, TVersitDateTime *aStartTime, TVersitDateTime *aEndTime, const TDesC &aStandardDesignation, const TDesC &aDaylightDesignation);

Description

Allocates and constructs a new universal time offset object.

Ownership of aStartTime and aEndTime is taken at end of this function.

Parameters

TBool aSavings

The daylight savings flag, i.e. ETrue if daylight saving is currently observed in the locale; EFalse if not.

TTimeIntervalSeconds aOffset

The universal time offset (in seconds).

TVersitDateTime *aStartTime

The date/time at which the period for daylight saving begins.

TVersitDateTime *aEndTime

The date/time at which the period for daylight saving ends.

const TDesC &aStandardDesignation

The standard time designation, e.g. GMT, EST.

const TDesC &aDaylightDesignation

The daylight saving time designation, e.g. BST, EDT.

Return value

CVersitDaylight *

The new universal time offset object.


~CVersitDaylight()

IMPORT_C ~CVersitDaylight();

Description

The destructor frees all resources owned by the object, prior to its destruction.

[Top]


Member data


iStartTimeSortKey

TInt64 iStartTimeSortKey;

Description

A sort key than can be used when sorting an array of properties by start date/time.


iSavings

TBool iSavings;

Description

The daylight savings flag: this is ETrue if daylight saving is in effect in the locale and EFalse if not.


iOffset

TTimeIntervalSeconds iOffset;

Description

The absolute offset from GMT, which is the sum of the time zone and daylight saving offsets (in seconds).


iStartTime

TVersitDateTime * iStartTime;

Description

The date/time at which the period for daylight saving begins.


iEndTime

TVersitDateTime * iEndTime;

Description

The date/time at which the period for daylight saving ends.


iStandardDesignation

HBufC * iStandardDesignation;

Description

The standard time designation, e.g. GMT, EST.


iDaylightDesignation

HBufC * iDaylightDesignation;

Description

The daylight saving time designation, e.g. BST, EDT.