#include <app/vprop.h>
class CVersitDaylight : public CBase |
Public Attributes | |
---|---|
HBufC * | iDaylightDesignation |
TVersitDateTime * | iEndTime |
TTimeIntervalSeconds | iOffset |
TBool | iSavings |
HBufC * | iStandardDesignation |
TVersitDateTime * | iStartTime |
TInt64 | iStartTimeSortKey |
Public Member Functions | |
---|---|
~CVersitDaylight() | |
IMPORT_C CVersitDaylight * | NewL(TBool, TTimeIntervalSeconds, TVersitDateTime *, TVersitDateTime *, const TDesC &, const TDesC &) |
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.
HBufC * | iDaylightDesignation |
The daylight saving time designation, e.g. BST, EDT.
TTimeIntervalSeconds | iOffset |
The absolute offset from GMT, which is the sum of the time zone and daylight saving offsets (in seconds).
TBool | iSavings |
The daylight savings flag: this is ETrue if daylight saving is in effect in the locale and EFalse if not.
TVersitDateTime * | iStartTime |
The date/time at which the period for daylight saving begins.
TInt64 | iStartTimeSortKey |
A sort key than can be used when sorting an array of properties by start date/time.
IMPORT_C | ~CVersitDaylight | ( | ) |
The destructor frees all resources owned by the object, prior to its destruction.
IMPORT_C CVersitDaylight * | NewL | ( | TBool | aSavings, |
TTimeIntervalSeconds | aOffset, | |||
TVersitDateTime * | aStartTime, | |||
TVersitDateTime * | aEndTime, | |||
const TDesC & | aStandardDesignation, | |||
const TDesC & | aDaylightDesignation | |||
) | [static] |
Allocates and constructs a new universal time offset object.
Ownership of aStartTime and aEndTime is taken at end of this function.
Parameter | Description |
---|---|
aSavings | The daylight savings flag, i.e. ETrue if daylight saving is currently observed in the locale; EFalse if not. |
aOffset | The universal time offset (in seconds). |
aStartTime | The date/time at which the period for daylight saving begins. |
aEndTime | The date/time at which the period for daylight saving ends. |
aStandardDesignation | The standard time designation, e.g. GMT, EST. |
aDaylightDesignation | The daylight saving time designation, e.g. BST, EDT. |
Returns: The new universal time offset object.