Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: calconv.h
Link against: ccon.lib

Class TChineseCalendar

TChineseCalendar

Support

Supported from 6.1

Description

Stores a date represented in the Chinese calendar.

The date can be converted to another TCalendar-derived calendar using operator=(), defined in the base class, TCalendar.

Derivation

TAstronomicalCalendarBase class used in the derivation of TChineseCalendar
TCalendarAbstract base class for calendars
TChineseCalendarStores a date represented in the Chinese calendar

Defined in TChineseCalendar:
ChineseToDateTime(), DateTimeToChinese(), GetDate(), SetDate(), TChineseCalendar()

Inherited from TCalendar:
operator=()


Construction


TChineseCalendar()

TChineseCalendar();

Description

Constructor. This constructs and initialises the Chinese calendar, but the date is not initialised.

[Top]


Get/set date


GetDate()

void GetDate(TChineseDate& aDate);

Description

Gets the date.

Parameters

TChineseDate& aDate

On return, contains the date.


SetDate()

TInt SetDate(const TChineseDate& aDate);

Description

Sets the date. First checks that the date specified is of the correct format for the Chinese calendar.

Parameters

const TChineseDate& aDate

The date to set.

Return value

TInt

KCalConInvalidDate if the date is invalid, otherwise KErrNone.


ChineseToDateTime()

void ChineseToDateTime(TDateTime& aDT);

Description

Gets the date stored in this object as a TDateTime.

Parameters

TDateTime& aDT

On return, contains the date represented as a TDateTime value. The time fields (hour, minute, second, microsecond) are all set to zero.


DateTimeToChinese()

void DateTimeToChinese(const TDateTime& aDT);

Description

Assigns a date represented as a TDateTime to this object.

Parameters

const TDateTime& aDT

Contains the date to assign to this object. The time components are ignored.