Logo Search packages:      
Sourcecode: icu version File versions  Download package

UDate TaiwanCalendar::internalGetDefaultCenturyStart ( void   )  const [private]

Returns the beginning date of the 100-year window that dates with 2-digit years are considered to fall within.

Reimplemented from GregorianCalendar.

Definition at line 158 of file taiwncal.cpp.

References fgSystemDefaultCentury, fgSystemDefaultCenturyStart, initializeSystemDefaultCentury(), and NULL.

Referenced by defaultCenturyStart().

    // lazy-evaluate systemDefaultCenturyStart
    UBool needsUpdate;
    UMTX_CHECK(NULL, (fgSystemDefaultCenturyStart == fgSystemDefaultCentury), needsUpdate);

    if (needsUpdate) {

    // use defaultCenturyStart unless it's the flag value;
    // then use systemDefaultCenturyStart

    return fgSystemDefaultCenturyStart;

Generated by  Doxygen 1.6.0   Back to index