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

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:
date The given UDate in UTC (GMT) time.
status Output 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 416 of file calendar.h.

Referenced by RelativeDateFormat::dayDifference(), SimpleDateFormat::format(), 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(), SimpleDateFormat::parse(), RelativeDateFormat::parse(), SimpleDateFormat::parseAmbiguousDatesAsAfter(), GregorianCalendar::setGregorianChange(), DateFormatRegressionTest::Test4060212(), CalendarRegressionTest::test4061476(), 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(), TimeZoneBoundaryTest::TestBoundaries(), CalendarRegressionTest::TestJ438(), CalendarRegressionTest::TestJ81(), CalendarRegressionTest::TestLeapFieldDifference(), TimeZoneTest::TestVariousAPI518(), DateFormatTest::TestWallyWedel(), CalendarRegressionTest::TestWeekShift(), and TimeZoneBoundaryTest::verifyMapping().

{ setTimeInMillis(date, status); }


Generated by  Doxygen 1.6.0   Back to index