Logo Search packages:      
Sourcecode: icu version File versions

UDate Calendar::getTime ( UErrorCode status  )  const [inline, inherited]

Gets this Calendar's time as milliseconds. May involve recalculation of time due to previous calls to set time field values. The time specified is non-local UTC (GMT) time. Although this method is const, this object may actually be changed (semantically const).

Parameters:
status Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status.
Returns:
The current time in UTC (GMT) time, or zero if the operation failed.

Definition at line 347 of file calendar.h.

Referenced by Calendar::equals(), getActualMaximum(), CalendarRegressionTest::getAssociatedDate(), SimpleDateFormat::initializeSystemDefaultCentury(), SimpleDateFormat::parse(), DateFormat::parse(), roll(), CalendarRegressionTest::test4051765(), CalendarRegressionTest::test4059654(), CalendarRegressionTest::test4071385(), TimeZoneRegressionTest::Test4073215(), CalendarRegressionTest::test4086724(), CalendarRegressionTest::test4092362(), CalendarRegressionTest::test4096231(), CalendarRegressionTest::test4103271(), CalendarRegressionTest::test4108764(), TimeZoneRegressionTest::Test4109314(), CalendarRegressionTest::test4114578(), CalendarRegressionTest::test4125881(), TimeZoneRegressionTest::Test4126678(), CalendarRegressionTest::test4147269(), CalendarRegressionTest::Test4162587(), CalendarRegressionTest::Test4165343(), CalendarRegressionTest::Test4166109(), CalendarRegressionTest::Test4167060(), CalendarRegressionTest::Test4197699(), DateFormatRegressionTest::Test4210209(), DateFormatTest::TestDateFormatCalendar(), DateFormatTest::TestDateFormatZone146(), CalendarRegressionTest::TestJ438(), CalendarRegressionTest::TestJ81(), CalendarRegressionTest::TestLeapFieldDifference(), and TimeZoneTest::TestRuleAPI().

{ return getTimeInMillis(status); }


Generated by  Doxygen 1.6.0   Back to index