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

int32_t Calendar::get ( EDateFields  field,
UErrorCode status 
) const [inherited]

Gets the value for a given time field. Recalculate the current time field values if the time value has been changed by a call to setTime(). Return zero for unset fields if any fields have been explicitly set by a call to set(). To force a recomputation of all fields regardless of the previous state, call complete(). This method is semantically const, but may alter the object in memory.

Parameters:
field The given time field.
status Fill-in parameter which receives the status of the operation.
Returns:
The value for the given time field, or zero if the field is unset, and set() has been called for any other field.
Deprecated:
ICU 2.6. Use get(UCalendarDateFields field, UErrorCode& status) instead.

Referenced by SimpleDateFormat::appendGMT(), RelativeDateFormat::dayDifference(), DateIntervalFormat::format(), Calendar::getActualHelper(), GregorianCalendar::getActualMaximum(), Calendar::getActualMaximum(), Calendar::getActualMinimum(), CalendarRegressionTest::getAssociatedDate(), TimeZone::getDisplayName(), DateFormatRoundTripTest::getField(), initializeSystemDefaultCentury(), PersianCalendar::initializeSystemDefaultCentury(), IslamicCalendar::initializeSystemDefaultCentury(), IndianCalendar::initializeSystemDefaultCentury(), HebrewCalendar::initializeSystemDefaultCentury(), GregorianCalendar::initializeSystemDefaultCentury(), EthiopicCalendar::initializeSystemDefaultCentury(), CopticCalendar::initializeSystemDefaultCentury(), ChineseCalendar::initializeSystemDefaultCentury(), BuddhistCalendar::initializeSystemDefaultCentury(), CalendarFieldsSet::matches(), SimpleDateFormat::parseAmbiguousDatesAsAfter(), GregorianCalendar::setGregorianChange(), SimpleDateFormat::subFormat(), SimpleDateFormat::subParse(), CalendarRegressionTest::test4031502(), CalendarRegressionTest::test4040996(), DateFormatRegressionTest::Test4060212(), CalendarRegressionTest::test4061476(), CalendarRegressionTest::test4070502(), CalendarRegressionTest::test4073929(), CalendarRegressionTest::test4074758(), CalendarRegressionTest::test4083167(), CalendarRegressionTest::test4092362(), CalendarRegressionTest::test4095407(), CalendarRegressionTest::test4096231(), CalendarRegressionTest::test4096539(), CalendarRegressionTest::test41003112(), CalendarRegressionTest::test4103271(), DateFormatRegressionTest::Test4106807(), CalendarRegressionTest::test4125892(), TimeZoneRegressionTest::Test4126678(), CalendarRegressionTest::test4145158(), CalendarRegressionTest::test4145983(), CalendarRegressionTest::Test4149677(), CalendarRegressionTest::Test4166109(), CalendarRegressionTest::Test4167060(), CalendarRegressionTest::Test4197699(), CalendarRegressionTest::TestJ81(), CalendarRegressionTest::TestTimeZoneTransitionAdd(), TimeZoneTest::TestVariousAPI518(), DateFormatTest::TestWallyWedel(), CalendarRegressionTest::TestWeekShift(), and TimeZoneBoundaryTest::verifyMapping().


Generated by  Doxygen 1.6.0   Back to index