Home
last modified time | relevance | path

Searched defs:instant (Results 1 – 25 of 38) sorted by relevance

12

/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime_instants.java93 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/
DClock.java410 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
DZonedDateTime.java400 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
DOffsetDateTime.java317 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/
DFileTimeTest.java128 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/
DDateTest.java154 private static void assertArithmeticOverflowDateFrom(Instant instant) { in assertArithmeticOverflowDateFrom()
184 Instant instant = date.toInstant(); in check_convertToInstantAndBack() local
DCalendarTest.java168 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/
DZoneRules.java479 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/
DFileTime.java67 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/
DTCKInstantPrinterParser.java112 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/
DTCKClock_System.java87 Instant instant = system.instant(); in test_instant() local
101 long instant = system.millis(); in test_millis() local
DTCKInstant.java163 private void check(Instant instant, long epochSecs, int nos) { in check()
DTCKClock.java88 public Instant instant() { in instant() method in TCKClock.MockInstantClock
DTCKLocalDate.java277 Instant instant = Instant.ofEpochSecond(i); in now_Clock_allSecsInDay_utc() local
DTCKClock_Tick.java180 Instant instant = test.instant(); in test_tickMinutes_ZoneId() local
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java108 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/
DParsed.java343 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/
DChronology.java506 Instant instant = Instant.from(temporal); in zonedDateTime() local
528 …default ChronoZonedDateTime<? extends ChronoLocalDate> zonedDateTime(Instant instant, ZoneId zone)… in zonedDateTime()
DChronoZonedDateTimeImpl.java170 static ChronoZonedDateTimeImpl<?> ofInstant(Chronology chrono, Instant instant, ZoneId zone) { in ofInstant()
187 private ChronoZonedDateTimeImpl<D> create(Instant instant, ZoneId zone) { in create()
DMinguoChronology.java274 public ChronoZonedDateTime<MinguoDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime()
DIsoChronology.java305 public ZonedDateTime zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime()
DThaiBuddhistChronology.java310 public ChronoZonedDateTime<ThaiBuddhistDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime()
/libcore/luni/src/test/java/libcore/java/time/zone/
DIcuZoneRulesProviderTest.java133 Instant instant = start; in testAllTransitions() local
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java123 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/
DCalendar.annotated.java277 @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()

12