Home
last modified time | relevance | path

Searched refs:getTime (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/external/v8/test/webkit/
Ddate-constructor-expected.txt30 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/
DHttpDateTest.java47 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegression.java101 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 …]
DCompatibilityTest.java58 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 …]
DAstroTest.java46 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 …]
DHolidayTest.java34 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/v8/test/mjsunit/
Ddate.js33 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()));
185 assertTrue(isNaN(d.getTime()));
187 assertTrue(isNaN(d.getTime()));
189 assertTrue(isNaN(d.getTime()));
[all …]
/external/v8/test/mjsunit/regress/
Dregress-416.js32 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneBoundaryTest.java69 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 …]
DTimeZoneRuleTest.java145 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone()
166 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone()
487 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTrip()
489 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTrip()
495 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, false)) { in TestVTimeZoneRoundTrip()
547 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTripPartial()
549 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTripPartial()
648 + lastmod.getTime() + "/After:" + newvtz1.getLastModified().getTime()); in TestVTimeZoneHeaderProps()
679 + lastmod.getTime() + "/After:" + newvtz2.getLastModified().getTime()); in TestVTimeZoneHeaderProps()
853 d2 = a1.getPreviousStart(d1.getTime(), -3*HOUR, 0, true); in TestTimeZoneRuleCoverage()
[all …]
/external/v8/test/intl/overrides/
Dcaching.js37 var cachedTime = endTime.getTime() - startTime.getTime();
45 var nonCachedTime = endTime.getTime() - startTime.getTime();
54 collatorTime = endTime.getTime() - startTime.getTime();
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DBasicTimeZone.java145 && 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 …]
DRuleBasedTimeZone.java152 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/
DLwjglTimer.java74 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/
Dastrotst.cpp92 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/
DNanoTimer.java63 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/
DAndroidTimer.java65 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()
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java54 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor()
55 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor()
210 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability()
211 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability()
213 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
/external/mockftpserver/tags/2.4/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java55 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor()
56 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor()
211 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability()
212 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability()
214 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java55 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor()
56 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor()
211 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability()
212 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability()
214 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
/external/mockftpserver/tags/2.0/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java54 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor()
55 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor()
210 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability()
211 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability()
213 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
/external/mockftpserver/tags/2.3/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java54 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor()
55 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor()
210 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability()
211 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability()
213 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
/external/mockftpserver/tags/2.0.2/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java54 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor()
55 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor()
210 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability()
211 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability()
213 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
/external/mockftpserver/tags/2.1/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java54 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor()
55 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor()
210 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability()
211 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability()
213 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
/external/mockftpserver/tags/2.5/src/test/java/org/mockftpserver/core/command/
DInvocationRecordTest.java55 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor()
56 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor()
211 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability()
212 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability()
214 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()

12345678910>>...12