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

int32_t Calendar::getMaximum ( EDateFields  field  )  const [virtual, inherited]

Gets the maximum value for the given time field. e.g. for Gregorian DAY_OF_MONTH, 31.

Parameters:
field The given time field.
Returns:
The maximum value for the given time field.
Deprecated:
ICU 2.6. Use getMaximum(UCalendarDateFields field) instead.

Definition at line 2110 of file calendar.cpp.

References Calendar::getLimit().

Referenced by GregorianCalendar::boundsCheck(), Calendar::getActualMaximum(), Calendar::roll(), SimpleDateFormat::subFormat(), SimpleDateFormat::subParse(), CalendarRegressionTest::test4118384(), CalendarRegressionTest::test4145983(), CalendarRegressionTest::test4147269(), and Calendar::validateField().

{
    return getLimit((UCalendarDateFields) field,UCAL_LIMIT_MAXIMUM);
}


Generated by  Doxygen 1.6.0   Back to index