Home
last modified time | relevance | path

Searched defs:instant (Results 1 – 25 of 43) 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 …]
DTestClock_System.java320 final Instant instant = clock.instant(); in testWithOffset() local
/libcore/ojluni/src/main/java/java/time/
DClock.java446 public abstract Instant instant(); in instant() method in Clock
557 public Instant instant() { in instant() method in Clock.SystemInstantSource
610 public Instant instant() { in instant() method in Clock.SystemClock
639 private final Instant instant; field in Clock.FixedClock
662 public Instant instant() { in instant() method in Clock.FixedClock
712 public Instant instant() { in instant() method in Clock.OffsetClock
763 public Instant instant() { in instant() method in Clock.TickClock
768 Instant instant = baseClock.instant(); in instant() local
820 public Instant instant() { in instant() method in Clock.SourceClock
DInstantSource.java207 Instant instant(); in instant() method
DOffsetDateTime.java318 public static OffsetDateTime ofInstant(Instant instant, ZoneId zone) { in ofInstant()
360 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.java146 private static void assertArithmeticOverflowDateFrom(Instant instant) { in assertArithmeticOverflowDateFrom()
176 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.java504 public ZoneOffset getOffset(Instant instant) { in getOffset()
775 public ZoneOffset getStandardOffset(Instant instant) { in getStandardOffset()
805 public Duration getDaylightSavings(Instant instant) { in getDaylightSavings()
828 public boolean isDaylightSavings(Instant instant) { in isDaylightSavings()
861 public ZoneOffsetTransition nextTransition(Instant instant) { in nextTransition()
908 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/
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.java280 Instant instant = Instant.ofEpochSecond(i); in now_Clock_allSecsInDay_utc() local
DTCKClock_Tick.java191 Instant instant = test.instant(); in test_tickMinutes_ZoneId() local
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKInstantPrinterParser.java118 Instant instant = Instant.ofEpochSecond(instantSecs, nano); in test_print_grouped() local
196 Instant instant = Instant.ofEpochSecond(instantSecs, nano); in test_print_digits() local
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java357 Instant instant = Instant.ofEpochSecond(fieldValues.get(INSTANT_SECONDS)); in resolveInstantFields0() local
651 long instant = date.atTime(time).atZone(offset).toEpochSecond(); in resolveInstant() local
655 long instant = date.atTime(time).atZone(zone).toEpochSecond(); in resolveInstant() local
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java171 static ChronoZonedDateTimeImpl<?> ofInstant(Chronology chrono, Instant instant, ZoneId zone) { in ofInstant()
188 private ChronoZonedDateTimeImpl<D> create(Instant instant, ZoneId zone) { in create()
DChronology.java511 Instant instant = Instant.from(temporal); in zonedDateTime() local
533 …default ChronoZonedDateTime<? extends ChronoLocalDate> zonedDateTime(Instant instant, ZoneId zone)… in zonedDateTime()
DMinguoChronology.java274 public ChronoZonedDateTime<MinguoDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime()
DThaiBuddhistChronology.java310 public ChronoZonedDateTime<ThaiBuddhistDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java109 Instant instant = zdt.toInstant(); in test() local
276 private void testInstant(Locale locale, Instant instant, in testInstant()
/libcore/luni/src/test/java/libcore/java/time/
DTimeApisConsistencyTest.java162 private static String formatWithBionic(Instant instant, String timeZoneId) { in formatWithBionic()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java125 Instant instant = old.toInstant(); in test_London_preTimeZones() local
290 Instant instant = zdt.toInstant(); in test_London_getStandardOffset() local
525 Instant instant = old.toInstant(); in test_Paris_preTimeZones() local
686 Instant instant = zdt.toInstant(); in test_Paris_getStandardOffset() local
719 Instant instant = old.toInstant(); in test_NewYork_preTimeZones() local
903 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