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

void Calendar::setLenient ( UBool  lenient  )  [inherited]

Specifies whether or not date/time interpretation is to be lenient. With lenient interpretation, a date such as "February 942, 1996" will be treated as being equivalent to the 941st day after February 1, 1996. With strict interpretation, such dates will cause an error when computing time from the time field values representing the dates.

Parameters:
lenient True specifies date/time interpretation to be lenient.
See also:
DateFormat::setLenient ICU 2.0

Definition at line 2030 of file calendar.cpp.

References Calendar::fLenient.

Referenced by Calendar::getActualHelper(), GregorianCalendar::getActualMaximum(), Calendar::getActualMinimum(), DateFormat::setLenient(), CalendarRegressionTest::test4051765(), CalendarRegressionTest::test4147269(), and DateFormatRegressionTest::Test4210209().

{
    fLenient = lenient;
}


Generated by  Doxygen 1.6.0   Back to index