Logo Search packages:      
Sourcecode: icu version File versions

void SimpleDateFormat::parseAmbiguousDatesAsAfter ( UDate  startDate,
UErrorCode status 
) [private]

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

startDatethe start date
statusReceives a status code, which will be U_ZERO_ERROR if the operation succeeds.

Definition at line 788 of file smpdtfmt.cpp.

References DateFormat::fCalendar, fDefaultCenturyStart, fDefaultCenturyStartYear, Calendar::get(), Calendar::setTime(), TRUE, U_FAILURE, U_ILLEGAL_ARGUMENT_ERROR, U_SUCCESS, and UCAL_YEAR.

Referenced by set2DigitYearStart().

    if(U_FAILURE(status)) {
    if(!fCalendar) {

    fCalendar->setTime(startDate, status);
    if(U_SUCCESS(status)) {
        fHaveDefaultCentury = TRUE;
        fDefaultCenturyStart = startDate;
        fDefaultCenturyStartYear = fCalendar->get(UCAL_YEAR, status);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index