Home
last modified time | relevance | path

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

1234567

/external/icu4c/test/intltest/
Dtzbdtest.h40 …virtual void findDaylightBoundaryUsingDate(UDate d, const char* startMode, UDate expectedBoundary);
41 …virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary);
42 …virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary,…
46 UnicodeString showDate(UDate d);
54 …virtual void verifyDST(UDate d, TimeZone* time_zone, UBool expUseDaylightTime, UBool expInDaylight…
65 virtual void testUsingBinarySearch(SimpleTimeZone* tz, UDate d, UDate expectedBoundary);
75 …virtual void findBoundariesStepwise(int32_t year, UDate interval, TimeZone* z, int32_t expectedCha…
85 const UDate ONE_SECOND;
86 const UDate ONE_MINUTE;
87 const UDate ONE_HOUR;
[all …]
Dtzbdtest.cpp65 const UDate TimeZoneBoundaryTest::PST_1997_BEG = 860320800000.0;
67 const UDate TimeZoneBoundaryTest::PST_1997_END = 877856400000.0;
69 const UDate TimeZoneBoundaryTest::INTERVAL = 10;
74 TimeZoneBoundaryTest::findDaylightBoundaryUsingDate(UDate d, const char* startMode, UDate expectedB… in findDaylightBoundaryUsingDate()
80 UDate min = d; in findDaylightBoundaryUsingDate()
81 UDate max = min + SIX_MONTHS; in findDaylightBoundaryUsingDate()
83 UDate mid = (min + max) / 2; in findDaylightBoundaryUsingDate()
94 UDate mindelta = expectedBoundary - min; in findDaylightBoundaryUsingDate()
95 UDate maxdelta = max - expectedBoundary; in findDaylightBoundaryUsingDate()
106 TimeZoneBoundaryTest::findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedB… in findDaylightBoundaryUsingTimeZone()
[all …]
Dtzrulets.h43 void verifyTransitions(BasicTimeZone& icutz, UDate start, UDate end);
45 UDate start, UDate end, UBool inclusive);
47 UDate start, UDate end, UBool inclusive);
48 UDate getUTCMillis(int32_t year, int32_t month, int32_t dom,
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 …]
Dtzregts.h53 UDate findTransitionBinary(const SimpleTimeZone& tz, UDate min, UDate max);
54 UDate findTransitionStepwise(const SimpleTimeZone& tz, UDate min, UDate max);
Dtztest.h52 UDate min, UDate max);
58 UDate min, UDate max,
59 UDate expectedBoundary);
100 static const UDate INTERVAL;
Dcaltztst.h34 UnicodeString dateToString(UDate d);
35 UnicodeString& dateToString(UDate d, UnicodeString& str);
36 UnicodeString& dateToString(UDate d, UnicodeString& str, const TimeZone& z);
40 UDate date(int32_t y, int32_t m, int32_t d, int32_t hr=0, int32_t min=0, int32_t sec=0);
47 …void dateToFields(UDate date, int32_t& y, int32_t& m, int32_t& d, int32_t& hr, int32_t& min, int32…
Ddtfmtrtts.h36 int32_t getField(UDate d, int32_t f);
38 UDate generateDate(void);
39 UDate generateDate(UDate minDate);
79 const UnicodeString& fullFormat(UDate d);
Dcalregts.h83 static UDate getAssociatedDate(UDate d, UErrorCode& status);
84 …static UDate makeDate(int32_t y, int32_t m = 0, int32_t d = 0, int32_t hr = 0, int32_t min = 0, in…
86 static const UDate EARLIEST_SUPPORTED_MILLIS;
87 static const UDate LATEST_SUPPORTED_MILLIS;
Ddtfmttst.h58 static void getFieldText(DateFormat* df, int32_t field, UDate date, UnicodeString& str);
70 …virtual void tryPat994(SimpleDateFormat* format, const char* pat, const char* str, UDate expected);
86 virtual void testIt917(SimpleDateFormat* fmt, UnicodeString& str, UDate expected);
105 virtual void tryPattern(SimpleDateFormat& sdf, UDate d, const char* pattern, UDate expected);
131 virtual void parse2DigitYear(DateFormat& fmt, const char* str, UDate expected);
Ddtfmrgts.cpp71 UDate today = Calendar::getNow(); in Test4029195()
132 UDate dt = date(97, UCAL_MAY, 3, 8, 55); in Test4052408()
233 UDate start = date(1809-1900, UCAL_DECEMBER, 25); in Test4056591()
238 UDate dates [] = { in Test4056591()
261 UDate exp = dates[i]; in Test4056591()
262 UDate got = fmt->parse(s, status); in Test4056591()
346 UDate myDate = formatter->parse( dateString, pos ); in Test4060212()
430 UDate curDate; in Test4065240()
532 UDate epoch = date(0, 0, 0); in Test4071441()
533 UDate xmas = date(61, UCAL_DECEMBER, 25); in Test4071441()
[all …]
/external/icu4c/i18n/unicode/
Dtzrule.h110 …virtual UBool getFirstStart(int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const = …
123 …virtual UBool getFinalStart(int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const = …
139 virtual UBool getNextStart(UDate base, int32_t prevRawOffset, int32_t prevDSTSavings,
140 UBool inclusive, UDate& result) const = 0;
156 virtual UBool getPreviousStart(UDate base, int32_t prevRawOffset, int32_t prevDSTSavings,
157 UBool inclusive, UDate& result) const = 0;
269 …UBool getStartInYear(int32_t year, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) c…
292 virtual UBool getFirstStart(int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const;
305 virtual UBool getFinalStart(int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const;
321 virtual UBool getNextStart(UDate base, int32_t prevRawOffset, int32_t prevDSTSavings,
[all …]
Dvtzone.h138 UBool getLastModified(UDate& lastModified) const;
145 void setLastModified(UDate lastModified);
163 void write(UDate start, UnicodeString& result, UErrorCode& status) /*const*/;
178 void writeSimple(UDate time, UnicodeString& result, UErrorCode& status) /*const*/;
260 virtual void getOffset(UDate date, UBool local, int32_t& rawOffset,
302 virtual UBool inDaylightTime(UDate date, UErrorCode& status) const;
322 …virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) /*const*/;
332 …virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) /*con…
372 void write(UDate start, VTZWriter& writer, UErrorCode& status) /*const*/;
373 void writeSimple(UDate time, VTZWriter& writer, UErrorCode& status) /*const*/;
[all …]
Drbtz.h196 virtual void getOffset(UDate date, UBool local, int32_t& rawOffset,
238 virtual UBool inDaylightTime(UDate date, UErrorCode& status) const;
258 …virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) /*const*/;
268 …virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) /*con…
303 … virtual void getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt,
310 TimeZoneRule* findRuleInFinal(UDate date, UBool local,
312 …UBool findNext(UDate base, UBool inclusive, UDate& time, TimeZoneRule*& from, TimeZoneRule*& to) c…
313 …UBool findPrev(UDate base, UBool inclusive, UDate& time, TimeZoneRule*& from, TimeZoneRule*& to) c…
316 UDate getTransitionTime(Transition* transition, UBool local,
318 …void getOffsetInternal(UDate date, UBool local, int32_t NonExistingTimeOpt, int32_t DuplicatedTime…
Dbasictz.h50 …virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) /*const*/…
60 …virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) /*con…
82 virtual UBool hasEquivalentTransitions(/*const*/ BasicTimeZone& tz, UDate start, UDate end,
140 virtual void getSimpleRulesNear(UDate date, InitialTimeZoneRule*& initial,
161 … virtual void getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt,
204 … void getTimeZoneRulesAfter(UDate start, InitialTimeZoneRule*& initial, UVector*& transitionRules,
Dgregocal.h313 void setGregorianChange(UDate date, UErrorCode& success);
323 UDate getGregorianChange(void) const;
590 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;
779 static UDate fgSystemDefaultCenturyStart;
794 static const UDate fgSystemDefaultCentury;
[all …]
Dsmpdtfmt.h487 UnicodeString& format(UDate date,
503 UnicodeString& format(UDate date,
529 UnicodeString& format(UDate date, UnicodeString& appendTo) const;
591 UDate parse( const UnicodeString& text,
628 virtual UDate parse( const UnicodeString& text,
647 virtual void set2DigitYearStart(UDate d, UErrorCode& status);
664 UDate get2DigitYearStart(UErrorCode& status) const;
1105 void parseAmbiguousDatesAsAfter(UDate startDate, UErrorCode& status);
1211 UDate fDefaultCenturyStart;
1235 inline UDate
[all …]
/external/icu4c/i18n/
Dtzrule.cpp24 UDate l = *((UDate*)left); in compareDates()
25 UDate r = *((UDate*)right); in compareDates()
147 UDate& /*result*/) const { in getFirstStart()
154 UDate& /*result*/) const { in getFinalStart()
159 InitialTimeZoneRule::getNextStart(UDate /*base*/, in getNextStart() argument
163 UDate& /*result*/) const { in getNextStart()
168 InitialTimeZoneRule::getPreviousStart(UDate /*base*/, in getPreviousStart() argument
172 UDate& /*result*/) const { in getPreviousStart()
265 UDate &result) const { in getStartInYear()
336 UDate& result) const { in getFirstStart()
[all …]
Dastro.h299 CalendarAstronomer(UDate d);
338 void setTime(UDate aTime);
351 void setDate(UDate aDate) { setTime(aDate); } in setDate()
378 UDate getTime();
531 UDate getSunTime(double desired, UBool next);
545 UDate getSunRiseSet(UBool rise);
631 UDate getMoonTime(double desired, UBool next);
632 UDate getMoonTime(const MoonAge& desired, UBool next);
639 UDate getMoonRiseSet(UBool rise);
653 UDate timeOfAngle(AngleFunc& func, double desired,
[all …]
Ddatefmt.cpp118 UDate date = 0; in format()
125 date = (UDate)obj.getDouble(); in format()
128 date = (UDate)obj.getLong(); in format()
153 UDate date = 0; in format()
160 date = (UDate)obj.getDouble(); in format()
163 date = (UDate)obj.getLong(); in format()
194 DateFormat::format(UDate date, UnicodeString& appendTo, FieldPosition& fieldPosition) const { in format()
213 DateFormat::format(UDate date, UnicodeString& appendTo, FieldPositionIterator* posIter, in format()
231 DateFormat::format(UDate date, UnicodeString& appendTo) const in format()
241 UDate
[all …]
Dvzone.h115 vzone_getLastModified(VZone* zone, UDate& lastModified);
123 vzone_setLastModified(VZone* zone, UDate lastModified);
145 vzone_writeFromStart(VZone* zone, UDate start, UChar* & result, int32_t & resultLength, UErrorCode&…
161 vzone_writeSimple(VZone* zone, UDate time, UChar* & result, int32_t & resultLength, UErrorCode& sta…
238 vzone_getOffset3(VZone* zone, UDate date, UBool local, int32_t& rawOffset,
284 vzone_inDaylightTime(VZone* zone, UDate date, UErrorCode& status);
306 vzone_getNextTransition(VZone* zone, UDate base, UBool inclusive, ZTrans* result);
317 vzone_getPreviousTransition(VZone* zone, UDate base, UBool inclusive, ZTrans* result);
Drbtz.cpp26 UDate time;
165 UDate lastTransitionTime = MIN_MILLIS; in complete()
183 UDate nextTransitionTime = MAX_MILLIS; in complete()
187 UDate tt; in complete()
283 UDate tt0, tt1; in complete()
374 UDate time = (UDate)Grego::fieldsToDay(year, month, day) * U_MILLIS_PER_DAY + millis; in getOffset()
383 RuleBasedTimeZone::getOffset(UDate date, UBool local, int32_t& rawOffset, in getOffset()
389 RuleBasedTimeZone::getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTim… in getOffsetFromLocal()
399 RuleBasedTimeZone::getOffsetInternal(UDate date, UBool local, in getOffsetInternal()
420 UDate tstart = getTransitionTime((Transition*)fHistoricTransitions->elementAt(0), in getOffsetInternal()
[all …]
Dzrule.h195 UDate& result);
210 UDate& result);
227 izrule_getNextStart(IZRule* rule, UDate base, int32_t prevRawOffset,
228 int32_t prevDSTSavings, UBool inclusive, UDate& result);
245 izrule_getPreviousStart(IZRule* rule, UDate base, int32_t prevRawOffset,
246 int32_t prevDSTSavings, UBool inclusive, UDate& result);
Dolsontz.cpp379 UDate date = (UDate)(Grego::fieldsToDay(year, month, dom) * U_MILLIS_PER_DAY + millis); in getOffset()
388 void OlsonTimeZone::getOffset(UDate date, UBool local, int32_t& rawoff, in getOffset()
401 OlsonTimeZone::getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt, in getOffsetFromLocal()
467 OlsonTimeZone::getHistoricalOffset(UDate date, UBool local, in getHistoricalOffset()
559 UDate current = uprv_getUTCtime(); in useDaylightTime()
595 UBool OlsonTimeZone::inDaylightTime(UDate date, UErrorCode& ec) const { in inDaylightTime()
729UDate* times = (UDate*)uprv_malloc(sizeof(UDate)*transCount); /* large enough to store all transit… in initTransitionRules()
740 UDate tt = (UDate)transitionTime(transitionIdx); in initTransitionRules()
779 firstTZTransition = new TimeZoneTransition((UDate)transitionTime(firstTZTransitionIdx), in initTransitionRules()
791 UDate startTime = (UDate)finalStartMillis; in initTransitionRules()
[all …]
/external/icu4c/common/unicode/
Ddtintrv.h41 DateInterval(UDate fromDate, UDate toDate);
54 UDate getFromDate() const;
61 UDate getToDate() const;
132 UDate fromDate;
133 UDate toDate;
138 inline UDate
144 inline UDate

1234567