/external/icu/icu4c/source/test/intltest/ |
D | tzbdtest.h | 40 …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 …]
|
D | tzbdtest.cpp | 65 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 …]
|
D | incaltst.cpp | 176 UDate D = grego->getTime(status); in quasiGregorianTest() 181 UDate d = cal.getTime(status); in quasiGregorianTest() 221 UDate timeA = Calendar::getNow(); in TestGregorian() 237 UDate timeB = Calendar::getNow(); in TestGregorian() 238 UDate timeCal = cal->getTime(status); in TestGregorian() 261 UDate timeA = Calendar::getNow(); in TestBuddhist() 290 UDate timeB = Calendar::getNow(); in TestBuddhist() 291 UDate timeCal = cal->getTime(status); in TestBuddhist() 311 UDate timeA = Calendar::getNow(); in TestTaiwan() 341 UDate timeB = Calendar::getNow(); in TestTaiwan() [all …]
|
D | tzrulets.h | 43 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,
|
D | tzregts.h | 53 UDate findTransitionBinary(const SimpleTimeZone& tz, UDate min, UDate max); 54 UDate findTransitionStepwise(const SimpleTimeZone& tz, UDate min, UDate max);
|
D | tztest.h | 52 UDate min, UDate max); 58 UDate min, UDate max, 59 UDate expectedBoundary); 104 static const UDate INTERVAL;
|
D | caltztst.h | 34 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…
|
D | dtfmtrtts.h | 36 int32_t getField(UDate d, int32_t f); 38 UDate generateDate(void); 39 UDate generateDate(UDate minDate); 79 const UnicodeString& fullFormat(UDate d);
|
D | calregts.h | 83 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;
|
D | dtfmttst.h | 58 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);
|
D | dtfmrgts.cpp | 74 UDate today = Calendar::getNow(); in Test4029195() 136 UDate dt = date(97, UCAL_MAY, 3, 8, 55); in Test4052408() 237 UDate start = date(1809-1900, UCAL_DECEMBER, 25); in Test4056591() 242 UDate dates [] = { in Test4056591() 265 UDate exp = dates[i]; in Test4056591() 266 UDate got = fmt->parse(s, status); in Test4056591() 350 UDate myDate = formatter->parse( dateString, pos ); in Test4060212() 434 UDate curDate; in Test4065240() 536 UDate epoch = date(0, 0, 0); in Test4071441() 537 UDate xmas = date(61, UCAL_DECEMBER, 25); in Test4071441() [all …]
|
D | tzrulets.cpp | 50 UDate start, UDate end, 237 UDate start = getUTCMillis(STARTYEAR, UCAL_JANUARY, 1); in TestSimpleRuleBasedTimeZone() 238 UDate until = getUTCMillis(STARTYEAR + 10, UCAL_JANUARY, 1); in TestSimpleRuleBasedTimeZone() 273 UDate time; in TestSimpleRuleBasedTimeZone() 513 UDate jan1_1950 = getUTCMillis(1950, UCAL_JANUARY, 1); in TestHistoricalRuleBasedTimeZone() 514 UDate jan1_1967 = getUTCMillis(1971, UCAL_JANUARY, 1); in TestHistoricalRuleBasedTimeZone() 515 UDate jan1_2010 = getUTCMillis(2010, UCAL_JANUARY, 1); in TestHistoricalRuleBasedTimeZone() 556 UDate times[] = { in TestHistoricalRuleBasedTimeZone() 623 UDate lo = getUTCMillis(TESTYEARS[i][0], UCAL_JANUARY, 1); in TestOlsonTransition() 624 UDate hi = getUTCMillis(TESTYEARS[i][1], UCAL_JANUARY, 1); in TestOlsonTransition() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | tzrule.h | 110 …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 …]
|
D | vtzone.h | 138 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) const; 372 void write(UDate start, VTZWriter& writer, UErrorCode& status) const; 373 void writeSimple(UDate time, VTZWriter& writer, UErrorCode& status) const; [all …]
|
D | rbtz.h | 196 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) const; 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…
|
D | basictz.h | 50 …virtual UBool getNextTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const = 0; 60 …virtual UBool getPreviousTransition(UDate base, UBool inclusive, TimeZoneTransition& result) const… 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,
|
D | gregocal.h | 313 void setGregorianChange(UDate date, UErrorCode& success); 323 UDate getGregorianChange(void) const; 589 virtual UDate getEpochDay(UErrorCode& status); 692 UDate fGregorianCutover; 704 UDate fNormalizedGregorianCutover;// = gregorianCutover; 725 static double millisToJulianDay(UDate millis); 734 static UDate julianDayToMillis(double julian); 762 virtual UDate defaultCenturyStart() const;
|
/external/icu/icu4c/source/i18n/ |
D | tzrule.cpp | 24 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 …]
|
D | astro.h | 299 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 …]
|
D | rbtz.cpp | 27 UDate time; 181 UDate lastTransitionTime = MIN_MILLIS; in complete() 199 UDate nextTransitionTime = MAX_MILLIS; in complete() 203 UDate tt; in complete() 299 UDate tt0, tt1; in complete() 390 UDate time = (UDate)Grego::fieldsToDay(year, month, day) * U_MILLIS_PER_DAY + millis; in getOffset() 399 RuleBasedTimeZone::getOffset(UDate date, UBool local, int32_t& rawOffset, in getOffset() 405 RuleBasedTimeZone::getOffsetFromLocal(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTim… in getOffsetFromLocal() 415 RuleBasedTimeZone::getOffsetInternal(UDate date, UBool local, in getOffsetInternal() 436 UDate tstart = getTransitionTime((Transition*)fHistoricTransitions->elementAt(0), in getOffsetInternal() [all …]
|
D | vzone.h | 115 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);
|
D | dangical.cpp | 106 …const UDate millis1897[] = { (UDate)((1897 - 1970) * 365 * kOneDay) }; // some days of error is no… in initDangiCalZoneAstroCalc() 107 …const UDate millis1898[] = { (UDate)((1898 - 1970) * 365 * kOneDay) }; // some days of error is no… in initDangiCalZoneAstroCalc() 108 …const UDate millis1912[] = { (UDate)((1912 - 1970) * 365 * kOneDay) }; // this doesn't create an i… in initDangiCalZoneAstroCalc()
|
D | zrule.h | 195 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);
|
D | datefmt.cpp | 124 UDate date = 0; in format() 131 date = (UDate)obj.getDouble(); in format() 134 date = (UDate)obj.getLong(); in format() 159 UDate date = 0; in format() 166 date = (UDate)obj.getDouble(); in format() 169 date = (UDate)obj.getLong(); in format() 200 DateFormat::format(UDate date, UnicodeString& appendTo, FieldPosition& fieldPosition) const { in format() 219 DateFormat::format(UDate date, UnicodeString& appendTo, FieldPositionIterator* posIter, in format() 237 DateFormat::format(UDate date, UnicodeString& appendTo) const in format() 247 UDate [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | dtintrv.h | 41 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
|