/external/v8/test/webkit/ |
D | date-constructor-expected.txt | 30 PASS new Date(1111).getTime() is 1111 31 PASS new Date(object).getTime() is 1111 32 PASS new Date(new Date(1111)).getTime() is 1111 33 PASS new Date(new Date(1111).toString()).getTime() is 1000 34 PASS new Date(1111, 1).getTime() - timeZoneOffset is -27104803200000 35 PASS new Date(1111, 1, 1).getTime() - timeZoneOffset is -27104803200000 36 PASS new Date(1111, 1, 1, 1).getTime() - timeZoneOffset is -27104799600000 37 PASS new Date(1111, 1, 1, 1, 1).getTime() - timeZoneOffset is -27104799540000 38 PASS new Date(1111, 1, 1, 1, 1, 1).getTime() - timeZoneOffset is -27104799539000 39 PASS new Date(1111, 1, 1, 1, 1, 1, 1).getTime() - timeZoneOffset is -27104799538999 [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | HttpDateTest.java | 47 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT").getTime()); in parseStandardFormats() 48 assertEquals(1402057830000L, HttpDate.parse("Fri, 06 Jun 2014 12:30:30 GMT").getTime()); in parseStandardFormats() 51 assertEquals(0L, HttpDate.parse("Thursday, 01-Jan-70 00:00:00 GMT").getTime()); in parseStandardFormats() 52 assertEquals(1402057830000L, HttpDate.parse("Friday, 06-Jun-14 12:30:30 GMT").getTime()); in parseStandardFormats() 55 assertEquals(0L, HttpDate.parse("Thu Jan 1 00:00:00 1970").getTime()); in parseStandardFormats() 56 assertEquals(1402057830000L, HttpDate.parse("Fri Jun 6 12:30:30 2014").getTime()); in parseStandardFormats() 66 assertEquals(3600000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT-01:00").getTime()); in parseNonStandardStrings() 67 assertEquals(28800000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 PST").getTime()); in parseNonStandardStrings() 69 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT JUNK").getTime()); in parseNonStandardStrings() 80 assertEquals(3600000L, HttpDate.parse("Thursday, 01-Jan-1970 00:00:00 GMT-01:00").getTime()); in parseNonStandardStrings() [all …]
|
/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/dateintervalformat/ |
D | DateIntervalFormatSample.java | 41 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 42 new GregorianCalendar(2008,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 43 new GregorianCalendar(2008,11,10,10,10,10).getTime(), in dtitvfmtPreDefined() 44 new GregorianCalendar(2008,11,10,15,10,10).getTime(), in dtitvfmtPreDefined() 47 new DateInterval(date[0].getTime(),date[1].getTime()), in dtitvfmtPreDefined() 48 new DateInterval(date[1].getTime(),date[2].getTime()), in dtitvfmtPreDefined() 49 new DateInterval(date[2].getTime(),date[3].getTime()), in dtitvfmtPreDefined() 84 new GregorianCalendar(2007,9,10,10,10,10).getTime(), in dtitvfmtCustomized() 85 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtCustomized() 86 new GregorianCalendar(2007,10,10,22,10,10).getTime(), in dtitvfmtCustomized() [all …]
|
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/dateintervalformat/ |
D | DateIntervalFormatSample.java | 40 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 41 new GregorianCalendar(2008,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 42 new GregorianCalendar(2008,11,10,10,10,10).getTime(), in dtitvfmtPreDefined() 43 new GregorianCalendar(2008,11,10,15,10,10).getTime(), in dtitvfmtPreDefined() 46 new DateInterval(date[0].getTime(),date[1].getTime()), in dtitvfmtPreDefined() 47 new DateInterval(date[1].getTime(),date[2].getTime()), in dtitvfmtPreDefined() 48 new DateInterval(date[2].getTime(),date[3].getTime()), in dtitvfmtPreDefined() 83 new GregorianCalendar(2007,9,10,10,10,10).getTime(), in dtitvfmtCustomized() 84 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtCustomized() 85 new GregorianCalendar(2007,10,10,22,10,10).getTime(), in dtitvfmtCustomized() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CalendarRegression.java | 101 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 113 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 190 cal.getTime(); in Test4051765() 265 Date cd = gc.getTime(); in Test4059654() 269 Date exp = cal.getTime(); in Test4059654() 303 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 334 return cal.getTime(); in getAssociatedDate() 352 logln(cal.getTime().toString()); in dowTest() 372 cal.setTime(tempcal.getTime()); in Test4071385() 374 logln(cal.getTime().toString()); in Test4071385() [all …]
|
D | CompatibilityTest.java | 58 long a = jdkCal.getTime().getTime(); in TestGregorianChangeover() 59 Date c = jdkCal.getTime(); in TestGregorianChangeover() 61 long b = c.getTime(); in TestGregorianChangeover() 68 Date co = jdkCal.getTime(); in TestGregorianChangeover() 69 logln("Change over (Oct 15 1582) = " + co + " (" + co.getTime() + ")"); in TestGregorianChangeover() 96 Date d = new Date(co.getTime() + i*ONE_DAY); in TestGregorianChangeover() 151 lim[sign] = fmt.format(cal.getTime()); in TestMapping() 197 long calMillis = cal.getTime().getTime(); in TestMapping() 218 calMillis = cal.getTime().getTime(); in TestMapping() 236 cal.setGregorianChange(tempcal.getTime()); in TestMapping() [all …]
|
D | AstroTest.java | 46 astro.setDate(gc.getTime()); in TestSolarLongitude() 98 astro.setDate(gc.getTime()); in TestLunarPosition() 134 Date then = cal.getTime(); in TestCoverage() 159 logln(" time: " + astro.getTime()); in TestCoverage() 252 astro.setDate(cal.getTime()); in TestSunriseTimes() 257 cal2.setTime(cal.getTime()); in TestSunriseTimes() 263 Date exprise = cal2.getTime(); in TestSunriseTimes() 266 Date expset = cal2.getTime(); in TestSunriseTimes() 268 int deltarise = Math.abs((int)(sunrise.getTime() - exprise.getTime()) / 1000); in TestSunriseTimes() 269 int deltaset = Math.abs((int)(sunset.getTime() - expset.getTime()) / 1000); in TestSunriseTimes() [all …]
|
D | HolidayTest.java | 34 longTimeAgo = cal.getTime(); in init() 101 first.setTime(first.getTime() + awhile); in exerciseHoliday() 160 c.getTime(); // JDK 1.1.2 bug workaround in exerciseHoliday() 162 Date endOfMonth = c.getTime(); in exerciseHoliday() 195 d.setTime( d.getTime() + 1000 ); // "d++" in exerciseHoliday() 220 return fCalendar.getTime(); in startOfMonth() 291 Date d0 = gcal.getTime(); in TestIsOn() 293 Date d1 = gcal.getTime(); in TestIsOn() 295 Date d2 = gcal.getTime(); in TestIsOn() 297 Date d3 = gcal.getTime(); in TestIsOn() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CalendarRegression.java | 105 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 117 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 194 cal.getTime(); in Test4051765() 269 Date cd = gc.getTime(); in Test4059654() 273 Date exp = cal.getTime(); in Test4059654() 307 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 338 return cal.getTime(); in getAssociatedDate() 356 logln(cal.getTime().toString()); in dowTest() 376 cal.setTime(tempcal.getTime()); in Test4071385() 378 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() 155 lim[sign] = fmt.format(cal.getTime()); in TestMapping() 201 long calMillis = cal.getTime().getTime(); in TestMapping() 222 calMillis = cal.getTime().getTime(); in TestMapping() 240 cal.setGregorianChange(tempcal.getTime()); in TestMapping() [all …]
|
D | AstroTest.java | 50 astro.setDate(gc.getTime()); in TestSolarLongitude() 102 astro.setDate(gc.getTime()); in TestLunarPosition() 138 Date then = cal.getTime(); in TestCoverage() 163 logln(" time: " + astro.getTime()); in TestCoverage() 256 astro.setDate(cal.getTime()); in TestSunriseTimes() 261 cal2.setTime(cal.getTime()); in TestSunriseTimes() 267 Date exprise = cal2.getTime(); in TestSunriseTimes() 270 Date expset = cal2.getTime(); in TestSunriseTimes() 272 int deltarise = Math.abs((int)(sunrise.getTime() - exprise.getTime()) / 1000); in TestSunriseTimes() 273 int deltaset = Math.abs((int)(sunset.getTime() - expset.getTime()) / 1000); in TestSunriseTimes() [all …]
|
/external/v8/test/mjsunit/regress/ |
D | regress-416.js | 32 assertTrue(isNaN(new Date(1e81).getTime()), "new Date(1e81)"); 33 assertTrue(isNaN(new Date(-1e81).getTime()), "new Date(-1e81)"); 34 assertTrue(isNaN(new Date(1e81, "").getTime()), "new Date(1e81, \"\")"); 35 assertTrue(isNaN(new Date(-1e81, "").getTime()), "new Date(-1e81, \"\")"); 36 assertTrue(isNaN(new Date(Number.NaN).getTime()), "new Date(Number.NaN)"); 37 assertTrue(isNaN(new Date(Number.NaN, "").getTime()),
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue49/ |
D | CalendarTest.java | 105 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadBean() 106 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadBean() 110 assertEquals(date, calendar.getTime()); in testLoadBean() 117 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadWithTag() 118 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadWithTag() 121 assertEquals(date, calendar.getTime()); in testLoadWithTag()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 73 long min = d.getTime(); in findDaylightBoundaryUsingDate() 153 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 212 d.getTime(); in showDate() 231 fmt.format(d) + " = " + d.getTime(); in showDate() 247 Date d = cal.getTime(); in verifyDST() 251 d.getTime()/3600000.0 + ")"); in verifyDST() 309 Date d = cal.getTime(); in verifyMapping() 310 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 …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 69 long min = d.getTime(); in findDaylightBoundaryUsingDate() 149 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 208 d.getTime(); in showDate() 227 fmt.format(d) + " = " + d.getTime(); in showDate() 243 Date d = cal.getTime(); in verifyDST() 247 d.getTime()/3600000.0 + ")"); in verifyDST() 305 Date d = cal.getTime(); in verifyMapping() 306 double e = d.getTime() / H; in verifyMapping() 417 Date d = tempcal.getTime(); in TestBoundaries() 429 tempcal.setTimeInMillis(d.getTime() + i*60*1000); in TestBoundaries() [all …]
|
/external/v8/test/intl/overrides/ |
D | caching.js | 37 var cachedTime = endTime.getTime() - startTime.getTime(); 45 var nonCachedTime = endTime.getTime() - startTime.getTime(); 54 collatorTime = endTime.getTime() - startTime.getTime();
|
/external/v8/test/mjsunit/ |
D | date.js | 33 assertEquals(1111, date0.getTime()); 34 assertEquals(date0.getTime(), date1.getTime()); 36 assertEquals(1000, date2.getTime()); 50 assertEquals(8.64e15, dMax.getTime()); 56 assertTrue(isNaN(dOverflow.getTime())); 59 assertEquals(-8.64e15, dMin.getTime()); 65 assertTrue(isNaN(dUnderflow.getTime())); 175 assertTrue(isNaN(d.getTime())); 177 assertTrue(isNaN(d.getTime())); 179 assertTrue(isNaN(d.getTime())); [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | BasicTimeZone.java | 138 && tr1.getTime() <= end in hasEquivalentTransitions() 142 tr1 = getNextTransition(tr1.getTime(), false); in hasEquivalentTransitions() 149 && tr2.getTime() <= end in hasEquivalentTransitions() 153 tr2 = ((BasicTimeZone)tz).getNextTransition(tr2.getTime(), false); in hasEquivalentTransitions() 163 if (tr1.getTime() <= end) { in hasEquivalentTransitions() 168 if (tr2.getTime() <= end) { in hasEquivalentTransitions() 179 if (tr1.getTime() != tr2.getTime()) { in hasEquivalentTransitions() 195 time = tr1.getTime(); in hasEquivalentTransitions() 258 time = tzt.getTime(); in getTimeZoneRules() 286 t = tzt.getTime(); in getTimeZoneRules() [all …]
|
D | RuleBasedTimeZone.java | 141 getOffset(date.getTime(), false, offsets); in inDaylightTime() 216 time = tt.getTime(); in observesDaylightTime() 330 long tt = tzt.getTime(); in getNextTransition() 336 tt = tzt.getTime(); in getNextTransition() 348 … tzt = new TimeZoneTransition(start0.getTime(), finalRules[1], finalRules[0]); in getNextTransition() 350 … tzt = new TimeZoneTransition(start1.getTime(), finalRules[0], finalRules[1]); in getNextTransition() 363 tt = tzt.getTime(); in getNextTransition() 383 result = getNextTransition(result.getTime(), false /* always exclusive */); in getNextTransition() 401 long tt = tzt.getTime(); in getPreviousTransition() 409 tt = tzt.getTime(); in getPreviousTransition() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BasicTimeZone.java | 145 && tr1.getTime() <= end in hasEquivalentTransitions() 149 tr1 = getNextTransition(tr1.getTime(), false); in hasEquivalentTransitions() 156 && tr2.getTime() <= end in hasEquivalentTransitions() 160 tr2 = ((BasicTimeZone)tz).getNextTransition(tr2.getTime(), false); in hasEquivalentTransitions() 170 if (tr1.getTime() <= end) { in hasEquivalentTransitions() 175 if (tr2.getTime() <= end) { in hasEquivalentTransitions() 186 if (tr1.getTime() != tr2.getTime()) { in hasEquivalentTransitions() 202 time = tr1.getTime(); in hasEquivalentTransitions() 269 time = tzt.getTime(); in getTimeZoneRules() 297 t = tzt.getTime(); in getTimeZoneRules() [all …]
|
D | RuleBasedTimeZone.java | 152 getOffset(date.getTime(), false, offsets); in inDaylightTime() 232 time = tt.getTime(); in observesDaylightTime() 352 long tt = tzt.getTime(); in getNextTransition() 358 tt = tzt.getTime(); in getNextTransition() 370 … tzt = new TimeZoneTransition(start0.getTime(), finalRules[1], finalRules[0]); in getNextTransition() 372 … tzt = new TimeZoneTransition(start1.getTime(), finalRules[0], finalRules[1]); in getNextTransition() 385 tt = tzt.getTime(); in getNextTransition() 405 result = getNextTransition(result.getTime(), false /* always exclusive */); in getNextTransition() 425 long tt = tzt.getTime(); in getPreviousTransition() 433 tt = tzt.getTime(); in getPreviousTransition() [all …]
|
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/system/lwjgl/ |
D | LwjglTimer.java | 74 startTime = Sys.getTime(); in reset() 75 oldTime = getTime(); in reset() 80 return getTime() * INV_LWJGL_TIMER_RES; in getTimeInSeconds() 86 public long getTime() { in getTime() method in LwjglTimer 87 return Sys.getTime() - startTime; in getTime() 116 long curTime = getTime(); in update()
|
/external/icu/icu4c/source/test/intltest/ |
D | astrotst.cpp | 92 astro->setDate(gc->getTime(status)); in TestSolarLongitude() 119 astro->setDate(gc->getTime(status)); in TestLunarPosition() 150 UDate then = cal->getTime(status); in TestCoverage() 178 logln((UnicodeString)" date: " + anAstro->getTime()); in TestCoverage() 289 astro3->setDate(cal->getTime(status)); in TestSunriseTimes() 296 cal2->setTime(cal->getTime(status), status); in TestSunriseTimes() 302 UDate exprise = cal2->getTime(status); in TestSunriseTimes() 305 UDate expset = cal2->getTime(status); in TestSunriseTimes() 318 errln("FAIL: (rise) " + df_d->format(cal->getTime(status),s1) + in TestSunriseTimes() 323 logln(df_d->format(cal->getTime(status),s1) + in TestSunriseTimes() [all …]
|
/external/jmonkeyengine/engine/src/core/com/jme3/system/ |
D | NanoTimer.java | 63 return getTime() * INVERSE_TIMER_RESOLUTION; in getTimeInSeconds() 66 public long getTime() { in getTime() method in NanoTimer 83 tpf = (getTime() - previousTime) * (1.0f / TIMER_RESOLUTION); in update() 85 previousTime = getTime(); in update() 90 previousTime = getTime(); in reset()
|
/external/jmonkeyengine/engine/src/android/com/jme3/system/android/ |
D | AndroidTimer.java | 65 return getTime() * INVERSE_TIMER_RESOLUTION; in getTimeInSeconds() 68 public long getTime() { in getTime() method in AndroidTimer 86 tpf = (getTime() - previousTime) * (1.0f / TIMER_RESOLUTION); in update() 88 previousTime = getTime(); in update() 94 previousTime = getTime(); in reset()
|