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

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

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

Definition at line 401 of file persncal.cpp.

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

Referenced by defaultCenturyStart().

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

    if (needsUpdate) {
        initializeSystemDefaultCentury();
    }

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

    return fgSystemDefaultCenturyStart;
}


Generated by  Doxygen 1.6.0   Back to index