Home
last modified time | relevance | path

Searched refs:ofEpochMilli (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DDateTest.java108 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()
DGregorianCalendarTest.java307 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()
DCalendarTest.java170 assertEquals(Instant.ofEpochMilli(calendar.getTimeInMillis()), instant); in testToInstant()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestInstant.java94 Instant t1 = Instant.ofEpochMilli(millis); in test_epochMillis()
/libcore/ojluni/src/test/java/time/tck/java/time/serial/
DTCKInstantSerialization.java79 assertSerializable(Instant.ofEpochMilli(134l)); in test_serialization()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock.java89 return Instant.ofEpochMilli(millis()); in instant()
DTCKInstant.java300 Instant t = Instant.ofEpochMilli(millis);
692 Instant inst = Instant.ofEpochMilli(1000);
708 Instant inst = Instant.ofEpochMilli(1000);
/libcore/ojluni/src/main/java/java/time/
DClock.java471 return Instant.ofEpochMilli(millis()); in instant()
624 return Instant.ofEpochMilli(millis - Math.floorMod(millis, tickNanos / 1000_000L)); in instant()
DInstant.java337 public static Instant ofEpochMilli(long epochMilli) { in ofEpochMilli() method in Instant
/libcore/luni/src/test/java/libcore/java/time/zone/
DIcuZoneRulesProviderTest.java176 Instant.ofEpochMilli(icuTransition.getTime()), jtTransition.getInstant()); in assertEquivalent()
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java53 Instant nowInstant = Instant.ofEpochMilli(now); in main()
164 instant = Instant.ofEpochMilli(millis); in main()
/libcore/ojluni/src/main/java/java/util/
DDate.java1392 return Instant.ofEpochMilli(getTime()); in toInstant()
DCalendar.java3594 return Instant.ofEpochMilli(getTimeInMillis()); in toInstant()
DGregorianCalendar.java3427 return ZonedDateTime.ofInstant(Instant.ofEpochMilli(getTimeInMillis()), in toZonedDateTime()