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

U_STABLE UDate U_EXPORT2 udat_get2DigitYearStart ( const UDateFormat fmt,
UErrorCode status 
)

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

Parameters:
fmtThe formatter to query.
statusA pointer to an UErrorCode to receive any errors
Returns:
The year relative to which all 2-digit years are interpreted.
See also:
udat_Set2DigitYearStart ICU 2.0

Definition at line 262 of file udat.cpp.

References U_FAILURE.

{
    verifyIsSimpleDateFormat(fmt, status);
    if(U_FAILURE(*status)) return (UDate)0;
    return ((SimpleDateFormat*)fmt)->get2DigitYearStart(*status);
}

Generated by  Doxygen 1.6.0   Back to index