/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime_instants.java | 93 Instant instant = Instant.ofEpochSecond(0L); in factory_ofInstant_nullOffset() local 99 Instant instant = Instant.ofEpochSecond(i); in factory_ofInstant_allSecsInDay() local 114 Instant instant = Instant.ofEpochSecond(i * 24L * 60L * 60L); in factory_ofInstant_allDaysInCycle() local 135 Instant instant = Instant.ofEpochSecond(days * 24L * 60L * 60L); in factory_ofInstant_tooLow() local 148 Instant instant = Instant.ofEpochSecond(days * 24L * 60L * 60L); in factory_ofInstant_tooBig() local 157 … Instant instant = Instant.ofEpochSecond(days * 24L * 60L * 60L - OFFSET_MIN.getTotalSeconds()); in factory_ofInstant_minWithMinOffset() local 173 … Instant instant = Instant.ofEpochSecond(days * 24L * 60L * 60L - OFFSET_MAX.getTotalSeconds()); in factory_ofInstant_minWithMaxOffset() local 189 …Instant instant = Instant.ofEpochSecond((days + 1) * 24L * 60L * 60L - 1 - OFFSET_MIN.getTotalSeco… in factory_ofInstant_maxWithMinOffset() local 205 …Instant instant = Instant.ofEpochSecond((days + 1) * 24L * 60L * 60L - 1 - OFFSET_MAX.getTotalSeco… in factory_ofInstant_maxWithMaxOffset() local 220 Instant instant = Instant.ofEpochSecond(Long.MAX_VALUE); in factory_ofInstant_maxInstantWithMaxOffset() local [all …]
|
/libcore/ojluni/src/main/java/java/time/ |
D | Clock.java | 410 public abstract Instant instant(); in instant() method in Clock 470 public Instant instant() { in instant() method in Clock.SystemClock 497 private final Instant instant; field in Clock.FixedClock 520 public Instant instant() { in instant() method in Clock.FixedClock 570 public Instant instant() { in instant() method in Clock.OffsetClock 621 public Instant instant() { in instant() method in Clock.TickClock 626 Instant instant = baseClock.instant(); in instant() local
|
D | ZonedDateTime.java | 400 public static ZonedDateTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() 448 …Instant instant = Instant.ofEpochSecond(epochSecond, nanoOfSecond); // TODO: rules should be quer… in create() local 1234 Instant instant = (Instant) adjuster; in with() local
|
D | OffsetDateTime.java | 317 public static OffsetDateTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() 359 Instant instant = Instant.from(temporal); in from() local
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 128 Instant instant = ft.toInstant(); in main() local 137 Instant instant = ft.toInstant(); in main() local 158 Instant instant = Instant.ofEpochSecond(secs, rand.nextInt(1000_000_000)); in main() local 295 static void eqTime(long value, TimeUnit unit, Instant instant) { in eqTime() 343 static void ts(Instant instant, String expected) { in ts()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | DateTest.java | 154 private static void assertArithmeticOverflowDateFrom(Instant instant) { in assertArithmeticOverflowDateFrom() 184 Instant instant = date.toInstant(); in check_convertToInstantAndBack() local
|
D | CalendarTest.java | 168 Instant instant = calendar.toInstant(); in testToInstant() local 169 assertEquals(calendar.getTime().toInstant(), instant); in testToInstant() local 170 assertEquals(Instant.ofEpochMilli(calendar.getTimeInMillis()), instant); in testToInstant() local
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneRules.java | 479 public ZoneOffset getOffset(Instant instant) { in getOffset() 750 public ZoneOffset getStandardOffset(Instant instant) { in getStandardOffset() 780 public Duration getDaylightSavings(Instant instant) { in getDaylightSavings() 803 public boolean isDaylightSavings(Instant instant) { in isDaylightSavings() 836 public ZoneOffsetTransition nextTransition(Instant instant) { in nextTransition() 883 public ZoneOffsetTransition previousTransition(Instant instant) { in previousTransition()
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 67 private Instant instant; field in FileTime 77 private FileTime(long value, TimeUnit unit, Instant instant) { in FileTime() 123 public static FileTime from(Instant instant) { in from()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKInstantPrinterParser.java | 112 Instant instant = Instant.ofEpochSecond(instantSecs, nano); in test_print_grouped() local 190 Instant instant = Instant.ofEpochSecond(instantSecs, nano); in test_print_digits() local
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock_System.java | 87 Instant instant = system.instant(); in test_instant() local 101 long instant = system.millis(); in test_millis() local
|
D | TCKInstant.java | 163 private void check(Instant instant, long epochSecs, int nos) { in check()
|
D | TCKClock.java | 88 public Instant instant() { in instant() method in TCKClock.MockInstantClock
|
D | TCKLocalDate.java | 277 Instant instant = Instant.ofEpochSecond(i); in now_Clock_allSecsInDay_utc() local
|
D | TCKClock_Tick.java | 180 Instant instant = test.instant(); in test_tickMinutes_ZoneId() local
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 108 Instant instant = zdt.toInstant(); in test() local 243 private void testInstant(Locale locale, Instant instant, in testInstant()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 343 Instant instant = Instant.ofEpochSecond(fieldValues.remove(INSTANT_SECONDS)); in resolveInstantFields0() local 590 long instant = date.atTime(time).atZone(zone).getLong(ChronoField.INSTANT_SECONDS); in resolveInstant() local 596 … long instant = date.atTime(time).atZone(offset).getLong(ChronoField.INSTANT_SECONDS); in resolveInstant() local
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Chronology.java | 506 Instant instant = Instant.from(temporal); in zonedDateTime() local 528 …default ChronoZonedDateTime<? extends ChronoLocalDate> zonedDateTime(Instant instant, ZoneId zone)… in zonedDateTime()
|
D | ChronoZonedDateTimeImpl.java | 170 static ChronoZonedDateTimeImpl<?> ofInstant(Chronology chrono, Instant instant, ZoneId zone) { in ofInstant() 187 private ChronoZonedDateTimeImpl<D> create(Instant instant, ZoneId zone) { in create()
|
D | MinguoChronology.java | 274 public ChronoZonedDateTime<MinguoDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime()
|
D | IsoChronology.java | 305 public ZonedDateTime zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime()
|
D | ThaiBuddhistChronology.java | 310 public ChronoZonedDateTime<ThaiBuddhistDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime()
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | IcuZoneRulesProviderTest.java | 133 Instant instant = start; in testAllTransitions() local
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRules.java | 123 Instant instant = old.toInstant(); in test_London_preTimeZones() local 279 Instant instant = zdt.toInstant(); in test_London_getStandardOffset() local 505 Instant instant = old.toInstant(); in test_Paris_preTimeZones() local 657 Instant instant = zdt.toInstant(); in test_Paris_getStandardOffset() local 688 Instant instant = old.toInstant(); in test_NewYork_preTimeZones() local 863 Instant instant = dateTime.toInstant(); in test_NewYork_getStandardOffset() local
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Calendar.annotated.java | 277 @libcore.util.NonNull public java.util.Calendar.Builder setInstant(long instant) { throw new Runtim… in setInstant() 279 …r setInstant(@libcore.util.NonNull java.util.Date instant) { throw new RuntimeException("Stub!"); } in setInstant()
|