Home
last modified time | relevance | path

Searched refs:toEpochMilli (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock.java115 private static final Clock MOCK_INSTANT = new MockInstantClock(INSTANT.toEpochMilli(), ZONE);
121 assertEquals(MOCK_INSTANT.millis(), INSTANT.toEpochMilli()); in test_mockInstantClock_get()
130 assertEquals(MOCK_INSTANT.millis(), INSTANT.toEpochMilli()); in test_mockInstantClock_withZone()
DTCKInstant.java193 long diff = Math.abs(test.toEpochMilli() - expected.toEpochMilli()); in now()
1908 assertEquals(Instant.ofEpochSecond(1L, 1000000).toEpochMilli(), 1001L);
1909 assertEquals(Instant.ofEpochSecond(1L, 2000000).toEpochMilli(), 1002L);
1910 assertEquals(Instant.ofEpochSecond(1L, 567).toEpochMilli(), 1000L);
1911 …assertEquals(Instant.ofEpochSecond(Long.MAX_VALUE / 1000).toEpochMilli(), (Long.MAX_VALUE / 1000) …
1912 …assertEquals(Instant.ofEpochSecond(Long.MIN_VALUE / 1000).toEpochMilli(), (Long.MIN_VALUE / 1000) …
1913 assertEquals(Instant.ofEpochSecond(0L, -1000000).toEpochMilli(), -1L);
1914 assertEquals(Instant.ofEpochSecond(0L, 1000000).toEpochMilli(), 1);
1915 assertEquals(Instant.ofEpochSecond(0L, 999999).toEpochMilli(), 0);
1916 assertEquals(Instant.ofEpochSecond(0L, 1).toEpochMilli(), 0);
[all …]
DTCKClock_System.java89 if (systemMillis - instant.toEpochMilli() < 10) { in test_instant()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestJapaneseChronoImpl.java109 long millis = jodt.toInstant().toEpochMilli(); in test_JapaneseChrono_vsCalendar()
136 long millis = jodt.toInstant().toEpochMilli(); in test_dayOfYearVsCalendar()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestInstant.java95 long m = t1.toEpochMilli(); in test_epochMillis()
/libcore/luni/src/test/java/libcore/libcore/util/
DZoneInfoTest.java86 return ZoneInfo.createZoneInfo(data, currentTime.toEpochMilli()); in createZoneInfo()
/libcore/ojluni/src/main/java/java/time/
DClock.java398 return instant().toEpochMilli(); in millis()
517 return instant.toEpochMilli(); in millis()
DInstant.java1144 case MILLIS: return Math.subtractExact(end.toEpochMilli(), toEpochMilli()); in until()
1225 public long toEpochMilli() { in toEpochMilli() method in Instant
/libcore/ojluni/src/test/java/nio/file/attribute/
DBasicFileAttributeViewCreationTimeTest.java72 if (Math.abs(creationTime.toMillis()-now.toEpochMilli()) > 10000L) { in test()
DFileTimeTest.java167 ft.toMillis() != instant.toEpochMilli()) { in main()
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipEntryTest.java176 .atZone(ZoneId.systemDefault()).toInstant().toEpochMilli()); in testSetTime()
180 .toInstant().toEpochMilli()); in testSetTime()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java118 cal.setTimeInMillis(instant.toEpochMilli()); in test()
227 cal0.setTimeInMillis(zdt.toInstant().toEpochMilli()); in testZoneId()
/libcore/luni/src/test/java/libcore/java/util/
DDateTest.java183 assertEquals(millis, instant.toEpochMilli()); in check_convertToInstantAndBack()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneTextPrinterParser.java102 boolean isDST = tz.inDaylightTime(new Date(zdt.toInstant().toEpochMilli())); in test_printText()
/libcore/ojluni/src/main/java/java/util/
DDate.java1375 return new Date(instant.toEpochMilli()); in from()
/libcore/api/
Dcurrent.txt10702 method public long toEpochMilli();