Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: CalendarConverter.h
Link against: ccon.lib

Class CChineseCalendarConverter

class CChineseCalendarConverter : public CBase;

Description

Converts between TDateTime and TChineseDate formats in both directions using a lookup table.

Derivation

Members

Defined in CChineseCalendarConverter:
ChineseToDateTimeL(), DateRange(), DateRange(), DateTimeToChineseL(), JulianDate(), NewL()

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


Construction and destruction


NewL()

static IMPORT_C CChineseCalendarConverter *NewL();

Description

Creates a new CChineseCalendarConverter object.

Return value

CChineseCalendarConverter *

Pointer to the new object.

[Top]


Member functions


DateTimeToChineseL()

virtual void DateTimeToChineseL(const TDateTime &aDateTime, TChineseDate &aChineseDate)=0;

Description

Creates a Chinese date from a TDateTime value.

Parameters

const TDateTime &aDateTime

The date/time value to convert.

TChineseDate &aChineseDate

On return, contains the Chinese date. If the supplied date is invalid, this contains KErrArgument.


ChineseToDateTimeL()

virtual void ChineseToDateTimeL(const TChineseDate &aChineseDate, TDateTime &aDateTime)=0;

Description

Creates a TDateTime value from a Chinese date.

Parameters

const TChineseDate &aChineseDate

A date in Chinese format.

TDateTime &aDateTime

On return, contains a date value. If the supplied date is invalid, this contains KErrArgument.


DateRange()

virtual void DateRange(TDateTime &aLower, TDateTime &aUpper)=0;

Description

Returns the range of dates, in standard date format, acceptable to the Chinese calendar converter.

Parameters

TDateTime &aLower

On return, contains the lower limit of the converter.

TDateTime &aUpper

On return, contains the upper limit of the converter.


DateRange()

virtual void DateRange(TChineseDate &aLower, TChineseDate &aUpper)=0;

Description

Returns the range of dates, in Chinese date format, acceptable to the Chinese calendar converter.

Parameters

TChineseDate &aLower

On return, contains the lower limit of the converter.

TChineseDate &aUpper

On return, contains the upper limit of the converter.


JulianDate()

virtual TReal JulianDate()=0;

Description

Returns the result of the last calendar conversion as a Julian date.

Return value

TReal

The Julian date.