Logo Search packages:      
Sourcecode: icu version File versions

void Calendar::setTime ( UDate  date,
UErrorCode status 
) [inline, inherited]

Sets this Calendar's current time with the given UDate. The time specified should be in non-local UTC (GMT) time.

Parameters:
dateThe given UDate in UTC (GMT) time.
statusOutput param set to success/failure code on exit. If any value set in the time field is invalid or restricted by leniency, this will be set to an error status. ICU 2.0

Definition at line 422 of file calendar.h.

Referenced by SimpleDateFormat::_format(), RelativeDateFormat::dayDifference(), CalendarCaseTest::doTestCases(), DateIntervalFormat::format(), DateFormat::format(), GregorianCalendar::getActualMaximum(), CalendarRegressionTest::getAssociatedDate(), DateFormatRoundTripTest::getField(), SimpleTimeZone::inDaylightTime(), initializeSystemDefaultCentury(), PersianCalendar::initializeSystemDefaultCentury(), IslamicCalendar::initializeSystemDefaultCentury(), IndianCalendar::initializeSystemDefaultCentury(), HebrewCalendar::initializeSystemDefaultCentury(), GregorianCalendar::initializeSystemDefaultCentury(), EthiopicCalendar::initializeSystemDefaultCentury(), CopticCalendar::initializeSystemDefaultCentury(), ChineseCalendar::initializeSystemDefaultCentury(), BuddhistCalendar::initializeSystemDefaultCentury(), Calendar::isWeekend(), SimpleDateFormat::parse(), RelativeDateFormat::parse(), SimpleDateFormat::parseAmbiguousDatesAsAfter(), IntlCalendarTest::quasiGregorianTest(), GregorianCalendar::setGregorianChange(), DateFormatRegressionTest::Test4060212(), CalendarRegressionTest::test4061476(), CalendarTest::test4064654(), CalendarRegressionTest::test4070502(), CalendarRegressionTest::test4071385(), DateFormatRegressionTest::Test4071441(), CalendarRegressionTest::test4083167(), CalendarRegressionTest::test4096231(), CalendarRegressionTest::test4103271(), DateFormatRegressionTest::Test4106807(), CalendarRegressionTest::test4108764(), TimeZoneRegressionTest::Test4109314(), CalendarRegressionTest::test4114578(), CalendarRegressionTest::test4145158(), CalendarRegressionTest::test4145983(), CalendarRegressionTest::test4147269(), CalendarRegressionTest::Test4149677(), CalendarRegressionTest::Test4165343(), CalendarRegressionTest::Test4167060(), CalendarTest::TestAddSetOrder621(), TimeZoneBoundaryTest::TestBoundaries(), CalendarTest::TestEpochStartFields(), CalendarTest::TestGenericAPI(), CalendarRegressionTest::TestJ438(), CalendarRegressionTest::TestJ81(), CalendarRegressionTest::TestLeapFieldDifference(), DataDrivenCalendarTest::testOps(), CalendarTest::TestSecondsZero121(), TimeZoneTest::TestVariousAPI518(), DateFormatTest::TestWallyWedel(), CalendarRegressionTest::TestWeekShift(), TimeZoneBoundaryTest::verifyDST(), TimeZoneBoundaryTest::verifyMapping(), and CalendarTest::yearAddTest().

{ setTimeInMillis(date, status); }

Generated by  Doxygen 1.6.0   Back to index