/third_party/icu/icu4j/samples/src/com/ibm/icu/samples/text/dateintervalformat/ |
D | DateIntervalFormatSample.java | 42 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 43 new GregorianCalendar(2008,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 44 new GregorianCalendar(2008,11,10,10,10,10).getTime(), in dtitvfmtPreDefined() 45 new GregorianCalendar(2008,11,10,15,10,10).getTime(), in dtitvfmtPreDefined() 48 new DateInterval(date[0].getTime(),date[1].getTime()), in dtitvfmtPreDefined() 49 new DateInterval(date[1].getTime(),date[2].getTime()), in dtitvfmtPreDefined() 50 new DateInterval(date[2].getTime(),date[3].getTime()), in dtitvfmtPreDefined() 85 new GregorianCalendar(2007,9,10,10,10,10).getTime(), in dtitvfmtCustomized() 86 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtCustomized() 87 new GregorianCalendar(2007,10,10,22,10,10).getTime(), in dtitvfmtCustomized() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 112 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 124 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 204 cal.getTime(); in Test4051765() 280 Date cd = gc.getTime(); in Test4059654() 284 Date exp = cal.getTime(); in Test4059654() 320 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 351 return cal.getTime(); in getAssociatedDate() 370 logln(cal.getTime().toString()); in dowTest() 391 cal.setTime(tempcal.getTime()); in Test4071385() 393 logln(cal.getTime().toString()); in Test4071385() [all …]
|
D | CompatibilityTest.java | 65 long a = jdkCal.getTime().getTime(); in TestGregorianChangeover() 66 Date c = jdkCal.getTime(); in TestGregorianChangeover() 68 long b = c.getTime(); in TestGregorianChangeover() 75 Date co = jdkCal.getTime(); in TestGregorianChangeover() 76 logln("Change over (Oct 15 1582) = " + co + " (" + co.getTime() + ")"); in TestGregorianChangeover() 103 Date d = new Date(co.getTime() + i*ONE_DAY); in TestGregorianChangeover() 159 lim[sign] = fmt.format(cal.getTime()); in TestMapping() 205 long calMillis = cal.getTime().getTime(); in TestMapping() 226 calMillis = cal.getTime().getTime(); in TestMapping() 244 cal.setGregorianChange(tempcal.getTime()); in TestMapping() [all …]
|
D | AstroTest.java | 53 astro.setDate(gc.getTime()); in TestSolarLongitude() 106 astro.setDate(gc.getTime()); in TestLunarPosition() 144 Date then = cal.getTime(); in TestCoverage() 169 logln(" time: " + astro.getTime()); in TestCoverage() 263 astro.setDate(cal.getTime()); in TestSunriseTimes() 268 cal2.setTime(cal.getTime()); in TestSunriseTimes() 274 Date exprise = cal2.getTime(); in TestSunriseTimes() 277 Date expset = cal2.getTime(); in TestSunriseTimes() 279 int deltarise = Math.abs((int)(sunrise.getTime() - exprise.getTime()) / 1000); in TestSunriseTimes() 280 int deltaset = Math.abs((int)(sunset.getTime() - expset.getTime()) / 1000); in TestSunriseTimes() [all …]
|
D | HolidayTest.java | 44 longTimeAgo = cal.getTime(); in localTestInitialize() 112 first.setTime(first.getTime() + awhile); in exerciseHoliday() 171 c.getTime(); // JDK 1.1.2 bug workaround in exerciseHoliday() 173 Date endOfMonth = c.getTime(); in exerciseHoliday() 206 d.setTime( d.getTime() + 1000 ); // "d++" in exerciseHoliday() 231 return fCalendar.getTime(); in startOfMonth() 305 Date d0 = gcal.getTime(); in TestIsOn() 307 Date d1 = gcal.getTime(); in TestIsOn() 309 Date d2 = gcal.getTime(); in TestIsOn() 311 Date d3 = gcal.getTime(); in TestIsOn() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 109 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 121 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 201 cal.getTime(); in Test4051765() 277 Date cd = gc.getTime(); in Test4059654() 281 Date exp = cal.getTime(); in Test4059654() 317 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 348 return cal.getTime(); in getAssociatedDate() 367 logln(cal.getTime().toString()); in dowTest() 388 cal.setTime(tempcal.getTime()); in Test4071385() 390 logln(cal.getTime().toString()); in Test4071385() [all …]
|
D | CompatibilityTest.java | 62 long a = jdkCal.getTime().getTime(); in TestGregorianChangeover() 63 Date c = jdkCal.getTime(); in TestGregorianChangeover() 65 long b = c.getTime(); in TestGregorianChangeover() 72 Date co = jdkCal.getTime(); in TestGregorianChangeover() 73 logln("Change over (Oct 15 1582) = " + co + " (" + co.getTime() + ")"); in TestGregorianChangeover() 100 Date d = new Date(co.getTime() + i*ONE_DAY); in TestGregorianChangeover() 156 lim[sign] = fmt.format(cal.getTime()); in TestMapping() 202 long calMillis = cal.getTime().getTime(); in TestMapping() 223 calMillis = cal.getTime().getTime(); in TestMapping() 241 cal.setGregorianChange(tempcal.getTime()); in TestMapping() [all …]
|
D | AstroTest.java | 50 astro.setDate(gc.getTime()); in TestSolarLongitude() 103 astro.setDate(gc.getTime()); in TestLunarPosition() 141 Date then = cal.getTime(); in TestCoverage() 166 logln(" time: " + astro.getTime()); in TestCoverage() 260 astro.setDate(cal.getTime()); in TestSunriseTimes() 265 cal2.setTime(cal.getTime()); in TestSunriseTimes() 271 Date exprise = cal2.getTime(); in TestSunriseTimes() 274 Date expset = cal2.getTime(); in TestSunriseTimes() 276 int deltarise = Math.abs((int)(sunrise.getTime() - exprise.getTime()) / 1000); in TestSunriseTimes() 277 int deltaset = Math.abs((int)(sunset.getTime() - expset.getTime()) / 1000); in TestSunriseTimes() [all …]
|
D | HolidayTest.java | 41 longTimeAgo = cal.getTime(); in localTestInitialize() 109 first.setTime(first.getTime() + awhile); in exerciseHoliday() 168 c.getTime(); // JDK 1.1.2 bug workaround in exerciseHoliday() 170 Date endOfMonth = c.getTime(); in exerciseHoliday() 203 d.setTime( d.getTime() + 1000 ); // "d++" in exerciseHoliday() 228 return fCalendar.getTime(); in startOfMonth() 302 Date d0 = gcal.getTime(); in TestIsOn() 304 Date d1 = gcal.getTime(); in TestIsOn() 306 Date d2 = gcal.getTime(); in TestIsOn() 308 Date d3 = gcal.getTime(); in TestIsOn() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 75 long min = d.getTime(); in findDaylightBoundaryUsingDate() 155 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 214 d.getTime(); in showDate() 233 fmt.format(d) + " = " + d.getTime(); in showDate() 249 Date d = cal.getTime(); in verifyDST() 253 d.getTime()/3600000.0 + ")"); in verifyDST() 311 Date d = cal.getTime(); in verifyMapping() 312 double e = d.getTime() / H; in verifyMapping() 424 Date d = tempcal.getTime(); in TestBoundaries() 436 tempcal.setTimeInMillis(d.getTime() + i*60*1000); in TestBoundaries() [all …]
|
D | TimeZoneRuleTest.java | 152 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 173 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 499 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTrip() 501 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTrip() 507 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, false)) { in TestVTimeZoneRoundTrip() 560 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTripPartial() 562 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTripPartial() 663 + lastmod.getTime() + "/After:" + newvtz1.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 694 + lastmod.getTime() + "/After:" + newvtz2.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 870 d2 = a1.getPreviousStart(d1.getTime(), -3*HOUR, 0, true); in TestTimeZoneRuleCoverage() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 72 long min = d.getTime(); in findDaylightBoundaryUsingDate() 152 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 211 d.getTime(); in showDate() 230 fmt.format(d) + " = " + d.getTime(); in showDate() 246 Date d = cal.getTime(); in verifyDST() 250 d.getTime()/3600000.0 + ")"); in verifyDST() 308 Date d = cal.getTime(); in verifyMapping() 309 double e = d.getTime() / H; in verifyMapping() 421 Date d = tempcal.getTime(); in TestBoundaries() 433 tempcal.setTimeInMillis(d.getTime() + i*60*1000); in TestBoundaries() [all …]
|
D | TimeZoneRuleTest.java | 150 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 171 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 497 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTrip() 499 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTrip() 505 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, false)) { in TestVTimeZoneRoundTrip() 558 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTripPartial() 560 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTripPartial() 661 + lastmod.getTime() + "/After:" + newvtz1.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 692 + lastmod.getTime() + "/After:" + newvtz2.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 868 d2 = a1.getPreviousStart(d1.getTime(), -3*HOUR, 0, true); in TestTimeZoneRuleCoverage() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BasicTimeZone.java | 147 && tr1.getTime() <= end in hasEquivalentTransitions() 151 tr1 = getNextTransition(tr1.getTime(), false); in hasEquivalentTransitions() 158 && tr2.getTime() <= end in hasEquivalentTransitions() 162 tr2 = ((BasicTimeZone)tz).getNextTransition(tr2.getTime(), false); in hasEquivalentTransitions() 172 if (tr1.getTime() <= end) { in hasEquivalentTransitions() 177 if (tr2.getTime() <= end) { in hasEquivalentTransitions() 188 if (tr1.getTime() != tr2.getTime()) { in hasEquivalentTransitions() 204 time = tr1.getTime(); in hasEquivalentTransitions() 271 time = tzt.getTime(); in getTimeZoneRules() 299 t = tzt.getTime(); in getTimeZoneRules() [all …]
|
D | RuleBasedTimeZone.java | 154 getOffset(date.getTime(), false, offsets); in inDaylightTime() 234 time = tt.getTime(); in observesDaylightTime() 354 long tt = tzt.getTime(); in getNextTransition() 360 tt = tzt.getTime(); in getNextTransition() 372 … tzt = new TimeZoneTransition(start0.getTime(), finalRules[1], finalRules[0]); in getNextTransition() 374 … tzt = new TimeZoneTransition(start1.getTime(), finalRules[0], finalRules[1]); in getNextTransition() 387 tt = tzt.getTime(); in getNextTransition() 406 result = getNextTransition(result.getTime(), false /* always exclusive */); in getNextTransition() 425 long tt = tzt.getTime(); in getPreviousTransition() 433 tt = tzt.getTime(); in getPreviousTransition() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | BasicTimeZone.java | 140 && tr1.getTime() <= end in hasEquivalentTransitions() 144 tr1 = getNextTransition(tr1.getTime(), false); in hasEquivalentTransitions() 151 && tr2.getTime() <= end in hasEquivalentTransitions() 155 tr2 = ((BasicTimeZone)tz).getNextTransition(tr2.getTime(), false); in hasEquivalentTransitions() 165 if (tr1.getTime() <= end) { in hasEquivalentTransitions() 170 if (tr2.getTime() <= end) { in hasEquivalentTransitions() 181 if (tr1.getTime() != tr2.getTime()) { in hasEquivalentTransitions() 197 time = tr1.getTime(); in hasEquivalentTransitions() 260 time = tzt.getTime(); in getTimeZoneRules() 288 t = tzt.getTime(); in getTimeZoneRules() [all …]
|
D | RuleBasedTimeZone.java | 143 getOffset(date.getTime(), false, offsets); in inDaylightTime() 218 time = tt.getTime(); in observesDaylightTime() 332 long tt = tzt.getTime(); in getNextTransition() 338 tt = tzt.getTime(); in getNextTransition() 350 … tzt = new TimeZoneTransition(start0.getTime(), finalRules[1], finalRules[0]); in getNextTransition() 352 … tzt = new TimeZoneTransition(start1.getTime(), finalRules[0], finalRules[1]); in getNextTransition() 365 tt = tzt.getTime(); in getNextTransition() 384 result = getNextTransition(result.getTime(), false /* always exclusive */); in getNextTransition() 401 long tt = tzt.getTime(); in getPreviousTransition() 409 tt = tzt.getTime(); in getPreviousTransition() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | astrotst.cpp | 100 astro->setDate(gc->getTime(status)); in TestSolarLongitude() 127 astro->setDate(gc->getTime(status)); in TestLunarPosition() 158 UDate then = cal->getTime(status); in TestCoverage() 186 logln((UnicodeString)" date: " + anAstro->getTime()); in TestCoverage() 298 astro3.setDate(cal.getTime(status)); in TestSunriseTimes() 305 cal2.setTime(cal.getTime(status), status); in TestSunriseTimes() 311 UDate exprise = cal2.getTime(status); in TestSunriseTimes() 314 UDate expset = cal2.getTime(status); in TestSunriseTimes() 327 errln("FAIL: (rise) " + df_d->format(cal.getTime(status),s1) + in TestSunriseTimes() 332 logln(df_d->format(cal.getTime(status),s1) + in TestSunriseTimes() [all …]
|
D | calregts.cpp | 153 UDate d = cal->getTime(status); // Should be Jan 1 in test4100311() 391 cal->getTime(status); in test4051765() 480 UDate cd = gc->getTime(status); in test4059654() 482 if (cd != exp->getTime(status)) in test4059654() 483 … errln(UnicodeString("Fail: Calendar::set broken. Got ") + cd + " Want " + exp->getTime(status)); in test4059654() 567 UDate dd = cal->getTime(status); in getAssociatedDate() 650 if (cal->getTime(status) != makeDate(1998, UCAL_NOVEMBER, 24)) in test4071385() 668 logln("foo1@%.0f - %d-%d-%d %d:%d:%d.%ds\n", foo1->getTime(status), in test4073929() 677 logln("foo1@%.0f - %d-%d-%d %d:%d:%d.%ds after +\n", foo1->getTime(status), in test4073929() 686 logln("foo1@%.0f - %d-%d-%d %d:%d:%d.%ds after -\n", foo1->getTime(status), in test4073929() [all …]
|
/third_party/skia/third_party/externals/icu/source/samples/dtitvfmtsample/ |
D | dtitvfmtsample.cpp | 38 UDate date1 = cal->getTime(status); in dtitvfmtPreDefined() 40 UDate date2 = cal->getTime(status); in dtitvfmtPreDefined() 42 UDate date3 = cal->getTime(status); in dtitvfmtPreDefined() 44 UDate date4 = cal->getTime(status); in dtitvfmtPreDefined() 104 new DateInterval(cal1->getTime(status),cal2->getTime(status)), in dtitvfmtCustomized() 105 new DateInterval(cal2->getTime(status),cal3->getTime(status)) in dtitvfmtCustomized()
|
/third_party/icu/icu4c/source/samples/dtitvfmtsample/ |
D | dtitvfmtsample.cpp | 38 UDate date1 = cal->getTime(status); in dtitvfmtPreDefined() 40 UDate date2 = cal->getTime(status); in dtitvfmtPreDefined() 42 UDate date3 = cal->getTime(status); in dtitvfmtPreDefined() 44 UDate date4 = cal->getTime(status); in dtitvfmtPreDefined() 104 new DateInterval(cal1->getTime(status),cal2->getTime(status)), in dtitvfmtCustomized() 105 new DateInterval(cal2->getTime(status),cal3->getTime(status)) in dtitvfmtCustomized()
|
/third_party/flutter/skia/third_party/externals/icu/source/samples/dtitvfmtsample/ |
D | dtitvfmtsample.cpp | 38 UDate date1 = cal->getTime(status); in dtitvfmtPreDefined() 40 UDate date2 = cal->getTime(status); in dtitvfmtPreDefined() 42 UDate date3 = cal->getTime(status); in dtitvfmtPreDefined() 44 UDate date4 = cal->getTime(status); in dtitvfmtPreDefined() 104 new DateInterval(cal1->getTime(status),cal2->getTime(status)), in dtitvfmtCustomized() 105 new DateInterval(cal2->getTime(status),cal3->getTime(status)) in dtitvfmtCustomized()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
D | IntlTestDateFormatAPI.java | 49 Date start = Calendar.getInstance().getTime(); in TestEquals() 52 if (!start.equals(Calendar.getInstance().getTime())) { in TestEquals() 114 logln("" + d.getTime() + " formatted to " + res1); in TestAPI() 117 logln("" + d.getTime() + " formatted to " + res2); in TestAPI() 120 logln("" + d.getTime() + " formatted to " + res3); in TestAPI() 137 logln(text + " parsed into " + ((Date)result1).getTime()); in TestAPI() 145 logln(text + " parsed into " + result2.getTime()); in TestAPI() 151 logln(text + " parsed into " + result3.getTime()); in TestAPI()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestDateFormatAPI.java | 46 Date start = Calendar.getInstance().getTime(); in TestEquals() 49 if (!start.equals(Calendar.getInstance().getTime())) { in TestEquals() 111 logln("" + d.getTime() + " formatted to " + res1); in TestAPI() 114 logln("" + d.getTime() + " formatted to " + res2); in TestAPI() 117 logln("" + d.getTime() + " formatted to " + res3); in TestAPI() 134 logln(text + " parsed into " + ((Date)result1).getTime()); in TestAPI() 142 logln(text + " parsed into " + result2.getTime()); in TestAPI() 148 logln(text + " parsed into " + result3.getTime()); in TestAPI()
|
D | DateIntervalFormatTest.java | 849 DateInterval dtitv = new DateInterval(date.getTime(), in expect() 850 date_2.getTime()); in expect() 940 DateInterval dtitv = new DateInterval(date.getTime(), in expectUserDII() 941 date_2.getTime()); in expectUserDII() 1072 DateInterval dtitv = new DateInterval(date.getTime(), in expectUserCLDR() 1073 date_2.getTime()); in expectUserCLDR() 1234 DateInterval dtitv = new DateInterval(date.getTime(), date_2.getTime()); in stress() 2175 DateInterval dtiv = new DateInterval(input1.getTime(), input2.getTime()); in testFormattedDateInterval() 2300 long from = fromDate.getTime() + (Integer)testCase[1]; in testFormatMillisecond() 2302 long to = toDate.getTime() + (Integer)testCase[3]; in testFormatMillisecond() [all …]
|