CVersitDaylight Class Reference

class CVersitDaylight : public CBase

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.

Inherits from

Constructor & Destructor Documentation

CVersitDaylight(TBool, TTimeIntervalSeconds, TVersitDateTime *, TVersitDateTime *)

CVersitDaylight(TBoolaSavings,
TTimeIntervalSecondsaOffset,
TVersitDateTime *aStartTime,
TVersitDateTime *aEndTime
)[private]

Parameters

TBool aSavings
TTimeIntervalSeconds aOffset
TVersitDateTime * aStartTime
TVersitDateTime * aEndTime

~CVersitDaylight()

IMPORT_C~CVersitDaylight()

Member Functions Documentation

ConstructL(const TDesC &, const TDesC &)

voidConstructL(const TDesC &aStandardDesignation,
const TDesC &aDaylightDesignation
)[private]

Parameters

const TDesC & aStandardDesignation
const TDesC & aDaylightDesignation

NewL(TBool, TTimeIntervalSeconds, TVersitDateTime *, TVersitDateTime *, const TDesC &, const TDesC &)

IMPORT_C CVersitDaylight *NewL(TBoolaSavings,
TTimeIntervalSecondsaOffset,
TVersitDateTime *aStartTime,
TVersitDateTime *aEndTime,
const TDesC &aStandardDesignation,
const TDesC &aDaylightDesignation
)[static]

Parameters

TBool aSavings
TTimeIntervalSeconds aOffset
TVersitDateTime * aStartTime
TVersitDateTime * aEndTime
const TDesC & aStandardDesignation
const TDesC & aDaylightDesignation

Member Data Documentation

HBufC * iDaylightDesignation

HBufC *iDaylightDesignation

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

TVersitDateTime * iEndTime

TVersitDateTime *iEndTime

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

TTimeIntervalSeconds iOffset

TTimeIntervalSeconds iOffset

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

TBool iSavings

TBool iSavings

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

HBufC * iStandardDesignation

HBufC *iStandardDesignation

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

TVersitDateTime * iStartTime

TVersitDateTime *iStartTime

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

TInt64 iStartTimeSortKey

TInt64 iStartTimeSortKey

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