Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: vprop.h
Link against: versit.lib

Class CVersitDaylight

CVersitDaylight

Support

Supported from 5.0

Description

Daylight saving information. During part of the year, the time may need to be adjusted by a one hour offset — the daylight saving offset. This offset needs to be taken into account when converting versit times (TVersitDateTimes) between universal and local time. This class stores information about the offset, including when it takes effect and the standard time designations. An instance of this class is owned by the CParserPropertyValueDaylight class.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CVersitDaylightDaylight saving information

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

Inherited from CBase:
operator new()


Construction and destruction


NewL()

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

Description

Allocates and constructs a new daylight saving object with a daylight savings flag, the time offset, the start and end date/times and the standard designations for time and daylight saving time.

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 daylight saving time offset (in seconds).

TVersitDateTime* aStartTime

The date/time that the period for daylight saving begins.

TVersitDateTime* aEndTime

The date/time that 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 daylight saving object.


NewLC()

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

Description

Allocates and constructs a new daylight saving object with a daylight savings flag, the time offset, the start and end date/time and the standard time and daylight saving time designations. Leaves the object on the cleanup stack.

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 daylight saving time offset (in seconds).

TVersitDateTime* aStartTime

The date/time that the period for daylight saving begins.

TVersitDateTime* aEndTime

The date/time that 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 daylight saving object.


~CVersitDaylight()

~CVersitDaylight();

Description

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

[Top]


Member data


iSavings

TBool iSavings

Description

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


iOffset

TTimeIntervalSeconds* iOffset

Description

The daylight saving time offset (in seconds).


iStartTime

TVersitDateTime* iStartTime

Description

The date/time that the period for daylight saving begins.


iEndTime

TVersitDateTime* iEndTime

Description

The date/time that 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.