class CChineseCalendarConverter : public CBase |
Converts between TDateTime and TChineseDate formats in both directions. Chinese dates are calculated using the -2636 epoch. This is equivalent to 2637 BCE (Before Common Era).
Public Member Functions | |
---|---|
void | ChineseToDateTimeL(const TChineseDate &, TDateTime &) |
void | DateRange(TDateTime &, TDateTime &) |
void | DateRange(TChineseDate &, TChineseDate &) |
void | DateTimeToChineseL(const TDateTime &, TChineseDate &) |
TReal | JulianDate() |
IMPORT_C CChineseCalendarConverter * | NewL() |
void | ChineseToDateTimeL | ( | const TChineseDate & | aChineseDate, |
TDateTime & | aDateTime | |||
) | [pure virtual] |
Creates a TDateTime value from a Chinese date.
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. |
void | DateRange | ( | TDateTime & | aLower, |
TDateTime & | aUpper | |||
) | [pure virtual] |
Returns the range of dates, in standard date format, acceptable to the Chinese calendar converter.
void | DateRange | ( | TChineseDate & | aLower, |
TChineseDate & | aUpper | |||
) | [pure virtual] |
Returns the range of dates, in Chinese date format, acceptable to the Chinese calendar converter.
TChineseDate & aLower | On return, contains the lower limit of the converter. |
TChineseDate & aUpper | On return, contains the upper limit of the converter. |
void | DateTimeToChineseL | ( | const TDateTime & | aDateTime, |
TChineseDate & | aChineseDate | |||
) | [pure virtual] |
Creates a Chinese date from a TDateTime value.
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. |
TReal | JulianDate | ( | ) | [pure virtual] |
Returns the result of the last calendar conversion as a Julian date.
The Julian date.