CChineseCalendarConverter Class Reference

#include <app/calendarconverter.h>

Link against: ccon.lib

class CChineseCalendarConverter : public CBase

Inherits from

  • CChineseCalendarConverter

    Detailed Description

    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).

    Member Function Documentation

    ChineseToDateTimeL ( const TChineseDate &, TDateTime & )

    voidChineseToDateTimeL(const TChineseDate &aChineseDate,
    TDateTime &aDateTime
    )[pure virtual]

    Creates a TDateTime value from a Chinese date.

    ParameterDescription
    aChineseDateA date in Chinese format.
    aDateTimeOn return, contains a date value. If the supplied date is invalid, this contains KErrArgument.

    DateRange ( TDateTime &, TDateTime & )

    voidDateRange(TDateTime &aLower,
    TDateTime &aUpper
    )[pure virtual]

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

    ParameterDescription
    aLowerOn return, contains the lower limit of the converter.
    aUpperOn return, contains the upper limit of the converter.

    DateRange ( TChineseDate &, TChineseDate & )

    voidDateRange(TChineseDate &aLower,
    TChineseDate &aUpper
    )[pure virtual]

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

    ParameterDescription
    aLowerOn return, contains the lower limit of the converter.
    aUpperOn return, contains the upper limit of the converter.

    DateTimeToChineseL ( const TDateTime &, TChineseDate & )

    voidDateTimeToChineseL(const TDateTime &aDateTime,
    TChineseDate &aChineseDate
    )[pure virtual]

    Creates a Chinese date from a TDateTime value.

    ParameterDescription
    aDateTimeThe date/time value to convert.
    aChineseDateOn return, contains the Chinese date. If the supplied date is invalid, this contains KErrArgument.

    JulianDate ( )

    TReal JulianDate()[pure virtual]

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

    Returns: The Julian date.

    NewL ( )

    IMPORT_C CChineseCalendarConverter *NewL()[static]

    Creates a new CChineseCalendarConverter object.

    Returns: Pointer to the new object.