Home
last modified time | relevance | path

Searched refs:UDate (Results 1 – 25 of 169) sorted by relevance

1234567

/external/icu/icu4c/source/test/intltest/
Dtzbdtest.h42 …virtual void findDaylightBoundaryUsingDate(UDate d, const char* startMode, UDate expectedBoundary);
43 …virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary);
44 …virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary,…
48 UnicodeString showDate(UDate d);
56 …virtual void verifyDST(UDate d, TimeZone* time_zone, UBool expUseDaylightTime, UBool expInDaylight…
67 virtual void testUsingBinarySearch(SimpleTimeZone* tz, UDate d, UDate expectedBoundary);
77 …virtual void findBoundariesStepwise(int32_t year, UDate interval, TimeZone* z, int32_t expectedCha…
87 const UDate ONE_SECOND;
88 const UDate ONE_MINUTE;
89 const UDate ONE_HOUR;
[all …]
Dtzbdtest.cpp67 const UDate TimeZoneBoundaryTest::PST_1997_BEG = 860320800000.0;
69 const UDate TimeZoneBoundaryTest::PST_1997_END = 877856400000.0;
71 const UDate TimeZoneBoundaryTest::INTERVAL = 10;
76 TimeZoneBoundaryTest::findDaylightBoundaryUsingDate(UDate d, const char* startMode, UDate expectedB… in findDaylightBoundaryUsingDate()
82 UDate min = d; in findDaylightBoundaryUsingDate()
83 UDate max = min + SIX_MONTHS; in findDaylightBoundaryUsingDate()
85 UDate mid = (min + max) / 2; in findDaylightBoundaryUsingDate()
96 UDate mindelta = expectedBoundary - min; in findDaylightBoundaryUsingDate()
97 UDate maxdelta = max - expectedBoundary; in findDaylightBoundaryUsingDate()
108 TimeZoneBoundaryTest::findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedB… in findDaylightBoundaryUsingTimeZone()
[all …]
Dincaltst.cpp179 UDate D = grego->getTime(status); in quasiGregorianTest()
184 UDate d = cal.getTime(status); in quasiGregorianTest()
224 UDate timeA = Calendar::getNow(); in TestGregorian()
240 UDate timeB = Calendar::getNow(); in TestGregorian()
241 UDate timeCal = cal->getTime(status); in TestGregorian()
264 UDate timeA = Calendar::getNow(); in TestBuddhist()
293 UDate timeB = Calendar::getNow(); in TestBuddhist()
294 UDate timeCal = cal->getTime(status); in TestBuddhist()
314 UDate timeA = Calendar::getNow(); in TestTaiwan()
344 UDate timeB = Calendar::getNow(); in TestTaiwan()
[all …]
Dtzrulets.h45 void verifyTransitions(BasicTimeZone& icutz, UDate start, UDate end);
47 UDate start, UDate end, UBool inclusive);
49 UDate start, UDate end, UBool inclusive);
50 UDate getUTCMillis(int32_t year, int32_t month, int32_t dom,
Dtzregts.h56 UDate findTransitionBinary(const SimpleTimeZone& tz, UDate min, UDate max);
57 UDate findTransitionStepwise(const SimpleTimeZone& tz, UDate min, UDate max);
Dtztest.h54 UDate min, UDate max);
60 UDate min, UDate max,
61 UDate expectedBoundary);
106 static const UDate INTERVAL;
Ddtfmttst.cpp279 UDate today = Calendar::getNow(); in TestWallyWedel()
399 UDate d = fmt->parse(*s, status); in TestTwoDigitYearDSTParse()
546 UDate aug13 = 871508052513.0; in TestFieldPosition()
686 UDate null = 0; in TestPartialParse994()
699 DateFormatTest::tryPat994(SimpleDateFormat* format, const char* pat, const char* str, UDate expecte… in tryPat994()
702 UDate null = 0; in tryPat994()
706 UDate date = format->parse(str, status); in tryPat994()
752 UDate date1 = Calendar::getNow(); in TestRunTogetherPattern985()
756 UDate date2 = formatter->parse(now, pos); in TestRunTogetherPattern985()
796 DateFormatTest::testIt917(SimpleDateFormat* fmt, UnicodeString& str, UDate expected) in testIt917()
[all …]
Dcaltztst.h36 UnicodeString dateToString(UDate d);
37 UnicodeString& dateToString(UDate d, UnicodeString& str);
38 UnicodeString& dateToString(UDate d, UnicodeString& str, const TimeZone& z);
42 UDate date(int32_t y, int32_t m, int32_t d, int32_t hr=0, int32_t min=0, int32_t sec=0);
49 …void dateToFields(UDate date, int32_t& y, int32_t& m, int32_t& d, int32_t& hr, int32_t& min, int32…
Dtzrulets.cpp53 UDate start, UDate end,
240 UDate start = getUTCMillis(STARTYEAR, UCAL_JANUARY, 1); in TestSimpleRuleBasedTimeZone()
241 UDate until = getUTCMillis(STARTYEAR + 10, UCAL_JANUARY, 1); in TestSimpleRuleBasedTimeZone()
276 UDate time; in TestSimpleRuleBasedTimeZone()
516 UDate jan1_1950 = getUTCMillis(1950, UCAL_JANUARY, 1); in TestHistoricalRuleBasedTimeZone()
517 UDate jan1_1967 = getUTCMillis(1971, UCAL_JANUARY, 1); in TestHistoricalRuleBasedTimeZone()
518 UDate jan1_2010 = getUTCMillis(2010, UCAL_JANUARY, 1); in TestHistoricalRuleBasedTimeZone()
559 UDate times[] = { in TestHistoricalRuleBasedTimeZone()
626 UDate lo = getUTCMillis(TESTYEARS[i][0], UCAL_JANUARY, 1); in TestOlsonTransition()
627 UDate hi = getUTCMillis(TESTYEARS[i][1], UCAL_JANUARY, 1); in TestOlsonTransition()
[all …]
Ddtfmtrtts.h38 int32_t getField(UDate d, int32_t f);
40 UDate generateDate(void);
41 UDate generateDate(UDate minDate);
81 const UnicodeString& fullFormat(UDate d);
Dcalregts.h89 static UDate getAssociatedDate(UDate d, UErrorCode& status);
90 …static UDate makeDate(int32_t y, int32_t m = 0, int32_t d = 0, int32_t hr = 0, int32_t min = 0, in…
92 static const UDate EARLIEST_SUPPORTED_MILLIS;
93 static const UDate LATEST_SUPPORTED_MILLIS;
Ddtfmrgts.cpp78 UDate today = Calendar::getNow(); in Test4029195()
140 UDate dt = date(97, UCAL_MAY, 3, 8, 55); in Test4052408()
241 UDate start = date(1809-1900, UCAL_DECEMBER, 25); in Test4056591()
246 UDate dates [] = { in Test4056591()
269 UDate exp = dates[i]; in Test4056591()
270 UDate got = fmt->parse(s, status); in Test4056591()
354 UDate myDate = formatter->parse( dateString, pos ); in Test4060212()
438 UDate curDate; in Test4065240()
540 UDate epoch = date(0, 0, 0); in Test4071441()
541 UDate xmas = date(61, UCAL_DECEMBER, 25); in Test4071441()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dtzrule.h112 …virtual UBool getFirstStart(int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const = …
125 …virtual UBool getFinalStart(int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const = …
141 virtual UBool getNextStart(UDate base, int32_t prevRawOffset, int32_t prevDSTSavings,
142 UBool inclusive, UDate& result) const = 0;
158 virtual UBool getPreviousStart(UDate base, int32_t prevRawOffset, int32_t prevDSTSavings,
159 UBool inclusive, UDate& result) const = 0;
271 …UBool getStartInYear(int32_t year, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) c…
294 virtual UBool getFirstStart(int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const;
307 virtual UBool getFinalStart(int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const;
323 virtual UBool getNextStart(UDate base, int32_t prevRawOffset, int32_t prevDSTSavings,
[all …]
Dvtzone.h140 UBool getLastModified(UDate& lastModified) const;
147 void setLastModified(UDate lastModified);
165 void write(UDate start, UnicodeString& result, UErrorCode& status) const;
180 void writeSimple(UDate time, UnicodeString& result, UErrorCode& status) const;
262 virtual void getOffset(UDate date, UBool local, int32_t& rawOffset,
304 virtual UBool inDaylightTime(UDate date, UErrorCode& status) const;
324 virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const;
334 …virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const;
374 void write(UDate start, VTZWriter& writer, UErrorCode& status) const;
375 void writeSimple(UDate time, VTZWriter& writer, UErrorCode& status) const;
[all …]
Drbtz.h198 virtual void getOffset(UDate date, UBool local, int32_t& rawOffset,
240 virtual UBool inDaylightTime(UDate date, UErrorCode& status) const;
260 virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const;
270 …virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const;
305 … virtual void getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt,
312 TimeZoneRule* findRuleInFinal(UDate date, UBool local,
314 …UBool findNext(UDate base, UBool inclusive, UDate& time, TimeZoneRule*& from, TimeZoneRule*& to) c…
315 …UBool findPrev(UDate base, UBool inclusive, UDate& time, TimeZoneRule*& from, TimeZoneRule*& to) c…
318 UDate getTransitionTime(Transition* transition, UBool local,
320 …void getOffsetInternal(UDate date, UBool local, int32_t NonExistingTimeOpt, int32_t DuplicatedTime…
Dbasictz.h52 …virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const = 0;
62 …virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const…
84 virtual UBool hasEquivalentTransitions(const BasicTimeZone& tz, UDate start, UDate end,
142 virtual void getSimpleRulesNear(UDate date, InitialTimeZoneRule*& initial,
163 … virtual void getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt,
206 … void getTimeZoneRulesAfter(UDate start, InitialTimeZoneRule*& initial, UVector*& transitionRules,
Dgregocal.h315 void setGregorianChange(UDate date, UErrorCode& success);
325 UDate getGregorianChange(void) const;
591 virtual UDate getEpochDay(UErrorCode& status);
694 UDate fGregorianCutover;
706 UDate fNormalizedGregorianCutover;// = gregorianCutover;
727 static double millisToJulianDay(UDate millis);
736 static UDate julianDayToMillis(double julian);
764 virtual UDate defaultCenturyStart() const;
/external/icu/icu4c/source/i18n/
Dtzrule.cpp26 UDate l = *((UDate*)left); in compareDates()
27 UDate r = *((UDate*)right); in compareDates()
149 UDate& /*result*/) const { in getFirstStart()
156 UDate& /*result*/) const { in getFinalStart()
161 InitialTimeZoneRule::getNextStart(UDate /*base*/, in getNextStart() argument
165 UDate& /*result*/) const { in getNextStart()
170 InitialTimeZoneRule::getPreviousStart(UDate /*base*/, in getPreviousStart() argument
174 UDate& /*result*/) const { in getPreviousStart()
267 UDate &result) const { in getStartInYear()
338 UDate& result) const { in getFirstStart()
[all …]
Dastro.h301 CalendarAstronomer(UDate d);
340 void setTime(UDate aTime);
353 void setDate(UDate aDate) { setTime(aDate); } in setDate()
380 UDate getTime();
533 UDate getSunTime(double desired, UBool next);
547 UDate getSunRiseSet(UBool rise);
633 UDate getMoonTime(double desired, UBool next);
634 UDate getMoonTime(const MoonAge& desired, UBool next);
641 UDate getMoonRiseSet(UBool rise);
655 UDate timeOfAngle(AngleFunc& func, double desired,
[all …]
Drbtz.cpp29 UDate time;
183 UDate lastTransitionTime = MIN_MILLIS; in complete()
201 UDate nextTransitionTime = MAX_MILLIS; in complete()
205 UDate tt; in complete()
301 UDate tt0, tt1; in complete()
392 UDate time = (UDate)Grego::fieldsToDay(year, month, day) * U_MILLIS_PER_DAY + millis; in getOffset()
401 RuleBasedTimeZone::getOffset(UDate date, UBool local, int32_t& rawOffset, in getOffset()
407 RuleBasedTimeZone::getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTim… in getOffsetFromLocal()
417 RuleBasedTimeZone::getOffsetInternal(UDate date, UBool local, in getOffsetInternal()
438 UDate tstart = getTransitionTime((Transition*)fHistoricTransitions->elementAt(0), in getOffsetInternal()
[all …]
Dvzone.h118 vzone_getLastModified(VZone* zone, UDate& lastModified);
126 vzone_setLastModified(VZone* zone, UDate lastModified);
148 vzone_writeFromStart(VZone* zone, UDate start, UChar* & result, int32_t & resultLength, UErrorCode&…
164 vzone_writeSimple(VZone* zone, UDate time, UChar* & result, int32_t & resultLength, UErrorCode& sta…
241 vzone_getOffset3(VZone* zone, UDate date, UBool local, int32_t& rawOffset,
287 vzone_inDaylightTime(VZone* zone, UDate date, UErrorCode& status);
309 vzone_getNextTransition(VZone* zone, UDate base, UBool inclusive, ZTrans* result);
320 vzone_getPreviousTransition(VZone* zone, UDate base, UBool inclusive, ZTrans* result);
Ddangical.cpp108 …const UDate millis1897[] = { (UDate)((1897 - 1970) * 365 * kOneDay) }; // some days of error is no… in initDangiCalZoneAstroCalc()
109 …const UDate millis1898[] = { (UDate)((1898 - 1970) * 365 * kOneDay) }; // some days of error is no… in initDangiCalZoneAstroCalc()
110 …const UDate millis1912[] = { (UDate)((1912 - 1970) * 365 * kOneDay) }; // this doesn't create an i… in initDangiCalZoneAstroCalc()
Dzrule.h199 UDate& result);
214 UDate& result);
231 izrule_getNextStart(IZRule* rule, UDate base, int32_t prevRawOffset,
232 int32_t prevDSTSavings, UBool inclusive, UDate& result);
249 izrule_getPreviousStart(IZRule* rule, UDate base, int32_t prevRawOffset,
250 int32_t prevDSTSavings, UBool inclusive, UDate& result);
Dolsontz.cpp382 UDate date = (UDate)(Grego::fieldsToDay(year, month, dom) * U_MILLIS_PER_DAY + millis); in getOffset()
391 void OlsonTimeZone::getOffset(UDate date, UBool local, int32_t& rawoff, in getOffset()
404 OlsonTimeZone::getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt, in getOffsetFromLocal()
475 OlsonTimeZone::getHistoricalOffset(UDate date, UBool local, in getHistoricalOffset()
567 UDate current = uprv_getUTCtime(); in useDaylightTime()
603 UBool OlsonTimeZone::inDaylightTime(UDate date, UErrorCode& ec) const { in inDaylightTime()
748UDate* times = (UDate*)uprv_malloc(sizeof(UDate)*transCount); /* large enough to store all transit… in initTransitionRules()
759 UDate tt = (UDate)transitionTime(transitionIdx); in initTransitionRules()
798 firstTZTransition = new TimeZoneTransition((UDate)transitionTime(firstTZTransitionIdx), in initTransitionRules()
810 UDate startTime = (UDate)finalStartMillis; in initTransitionRules()
[all …]
/external/icu/icu4c/source/common/unicode/
Ddtintrv.h43 DateInterval(UDate fromDate, UDate toDate);
56 UDate getFromDate() const;
63 UDate getToDate() const;
134 UDate fromDate;
135 UDate toDate;
140 inline UDate
146 inline UDate

1234567