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:
fieldThe given time field.
statusFill-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(), CalendarCaseTest::checkField(), RelativeDateFormat::dayDifference(), CalendarTest::dowTest(), DateIntervalFormat::format(), Calendar::getActualHelper(), GregorianCalendar::getActualMaximum(), Calendar::getActualMaximum(), Calendar::getActualMinimum(), CalendarRegressionTest::getAssociatedDate(), TimeZone::getDisplayName(), DateFormatRoundTripTest::getField(), initializeSystemDefaultCentury(), CopticCalendar::initializeSystemDefaultCentury(), BuddhistCalendar::initializeSystemDefaultCentury(), EthiopicCalendar::initializeSystemDefaultCentury(), ChineseCalendar::initializeSystemDefaultCentury(), PersianCalendar::initializeSystemDefaultCentury(), IndianCalendar::initializeSystemDefaultCentury(), HebrewCalendar::initializeSystemDefaultCentury(), IslamicCalendar::initializeSystemDefaultCentury(), GregorianCalendar::initializeSystemDefaultCentury(), CalendarFieldsSet::matches(), ChineseCalendar::newYear(), SimpleDateFormat::parseAmbiguousDatesAsAfter(), IntlCalendarTest::quasiGregorianTest(), GregorianCalendar::setGregorianChange(), HebrewCalendar::startOfYear(), SimpleDateFormat::subFormat(), SimpleDateFormat::subParse(), CalendarRegressionTest::test4031502(), CalendarRegressionTest::test4040996(), DateFormatRegressionTest::Test4060212(), CalendarRegressionTest::test4061476(), CalendarTest::test4064654(), 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(), CalendarTest::TestClonesUnique908(), CalendarTest::TestEpochStartFields(), CalendarTest::TestFields060(), CalendarTest::TestGenericAPI(), CalendarTest::TestISO8601(), CalendarRegressionTest::TestJ81(), CalendarTest::TestRog(), CalendarRegressionTest::TestTimeZoneTransitionAdd(), TimeZoneTest::TestVariousAPI518(), DateFormatTest::TestWallyWedel(), CalendarRegressionTest::TestWeekShift(), IslamicCalendar::trueMonthStart(), CalendarTest::verify765(), TimeZoneBoundaryTest::verifyMapping(), ChineseCalendar::winterSolstice(), and CalendarTest::yearAddTest().


Generated by  Doxygen 1.6.0   Back to index