Searched refs:ofEpochMilli (Results 1 – 14 of 14) sorted by relevance
/libcore/luni/src/test/java/libcore/java/util/ |
D | DateTest.java | 108 assertEquals(new Date(millis), Date.from(Instant.ofEpochMilli(millis))); in check_convertFromAndToInstant_milliseconds() 109 assertEquals(new Date(millis).toInstant(), Instant.ofEpochMilli(millis)); in check_convertFromAndToInstant_milliseconds() 179 assertEquals(instant, Instant.ofEpochMilli(millis)); in check_convertToInstantAndBack()
|
D | GregorianCalendarTest.java | 307 ZonedDateTime.ofInstant(Instant.ofEpochMilli(Long.MAX_VALUE).plusMillis(1), gmt), in test_fromZonedDateTime_invalidValues() 308 ZonedDateTime.ofInstant(Instant.ofEpochMilli(Long.MIN_VALUE).minusMillis(1), gmt), in test_fromZonedDateTime_invalidValues()
|
D | CalendarTest.java | 170 assertEquals(Instant.ofEpochMilli(calendar.getTimeInMillis()), instant); in testToInstant()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestInstant.java | 94 Instant t1 = Instant.ofEpochMilli(millis); in test_epochMillis()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKInstantSerialization.java | 79 assertSerializable(Instant.ofEpochMilli(134l)); in test_serialization()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock.java | 89 return Instant.ofEpochMilli(millis()); in instant()
|
D | TCKInstant.java | 300 Instant t = Instant.ofEpochMilli(millis); 692 Instant inst = Instant.ofEpochMilli(1000); 708 Instant inst = Instant.ofEpochMilli(1000);
|
/libcore/ojluni/src/main/java/java/time/ |
D | Clock.java | 471 return Instant.ofEpochMilli(millis()); in instant() 624 return Instant.ofEpochMilli(millis - Math.floorMod(millis, tickNanos / 1000_000L)); in instant()
|
D | Instant.java | 337 public static Instant ofEpochMilli(long epochMilli) { in ofEpochMilli() method in Instant
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | IcuZoneRulesProviderTest.java | 176 Instant.ofEpochMilli(icuTransition.getTime()), jtTransition.getInstant()); in assertEquivalent()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 53 Instant nowInstant = Instant.ofEpochMilli(now); in main() 164 instant = Instant.ofEpochMilli(millis); in main()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Date.java | 1392 return Instant.ofEpochMilli(getTime()); in toInstant()
|
D | Calendar.java | 3594 return Instant.ofEpochMilli(getTimeInMillis()); in toInstant()
|
D | GregorianCalendar.java | 3427 return ZonedDateTime.ofInstant(Instant.ofEpochMilli(getTimeInMillis()), in toZonedDateTime()
|