Searched refs:toEpochMilli (Results 1 – 16 of 16) sorted by relevance
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock.java | 115 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()
|
D | TCKInstant.java | 193 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 …]
|
D | TCKClock_System.java | 89 if (systemMillis - instant.toEpochMilli() < 10) { in test_instant()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestJapaneseChronoImpl.java | 109 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/ |
D | TestInstant.java | 95 long m = t1.toEpochMilli(); in test_epochMillis()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | ZoneInfoTest.java | 86 return ZoneInfo.createZoneInfo(data, currentTime.toEpochMilli()); in createZoneInfo()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Clock.java | 398 return instant().toEpochMilli(); in millis() 517 return instant.toEpochMilli(); in millis()
|
D | Instant.java | 1144 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/ |
D | BasicFileAttributeViewCreationTimeTest.java | 72 if (Math.abs(creationTime.toMillis()-now.toEpochMilli()) > 10000L) { in test()
|
D | FileTimeTest.java | 167 ft.toMillis() != instant.toEpochMilli()) { in main()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | ZipEntryTest.java | 176 .atZone(ZoneId.systemDefault()).toInstant().toEpochMilli()); in testSetTime() 180 .toInstant().toEpochMilli()); in testSetTime()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 118 cal.setTimeInMillis(instant.toEpochMilli()); in test() 227 cal0.setTimeInMillis(zdt.toInstant().toEpochMilli()); in testZoneId()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | DateTest.java | 183 assertEquals(millis, instant.toEpochMilli()); in check_convertToInstantAndBack()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 102 boolean isDST = tz.inDaylightTime(new Date(zdt.toInstant().toEpochMilli())); in test_printText()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Date.java | 1375 return new Date(instant.toEpochMilli()); in from()
|
/libcore/api/ |
D | current.txt | 10702 method public long toEpochMilli();
|