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

U_STABLE void U_EXPORT2 udat_set2DigitYearStart ( UDateFormat fmt,
UDate  d,
UErrorCode status 
)

Set the year relative to which all 2-digit years will be interpreted. For example, if the 2-digit start year is 2100, the year 99 will be interpreted as 2199.

Parameters:
fmt The formatter to set.
d The year relative to which all 2-digit years will be interpreted.
status A pointer to an UErrorCode to receive any errors
See also:
udat_Set2DigitYearStart ICU 2.0

Definition at line 315 of file udat.cpp.

References U_FAILURE.

{
    verifyIsSimpleDateFormat(fmt, status);
    if(U_FAILURE(*status)) return;
    ((SimpleDateFormat*)fmt)->set2DigitYearStart(d, *status);
}


Generated by  Doxygen 1.6.0   Back to index