Home
last modified time | relevance | path

Searched refs:localDateTime (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DZonedDateTime.java287 public static ZonedDateTime of(LocalDateTime localDateTime, ZoneId zone) { in of() argument
288 return ofLocal(localDateTime, zone, null); in of()
361 …public static ZonedDateTime ofLocal(LocalDateTime localDateTime, ZoneId zone, ZoneOffset preferred… in ofLocal() argument
362 Objects.requireNonNull(localDateTime, "localDateTime"); in ofLocal()
365 return new ZonedDateTime(localDateTime, (ZoneOffset) zone, zone); in ofLocal()
368 List<ZoneOffset> validOffsets = rules.getValidOffsets(localDateTime); in ofLocal()
373 ZoneOffsetTransition trans = rules.getTransition(localDateTime); in ofLocal()
374 localDateTime = localDateTime.plusSeconds(trans.getDuration().getSeconds()); in ofLocal()
383 return new ZonedDateTime(localDateTime, offset, zone); in ofLocal()
427 …public static ZonedDateTime ofInstant(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone)… in ofInstant() argument
[all …]
/libcore/luni/src/test/java/libcore/java/time/
DZonedDateTimeTest.java98 private static void checkOfInstant(LocalDateTime localDateTime, ZoneOffset offset, in checkOfInstant() argument
100 ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(localDateTime, offset, zone); in checkOfInstant()
102 localDateTime, offset, zone, zonedDateTime); in checkOfInstant()
168 private static void checkOfLocal(LocalDateTime localDateTime, ZoneId zone, in checkOfLocal() argument
170 ZonedDateTime zonedDateTime = ZonedDateTime.ofLocal(localDateTime, zone, preferredOffset); in checkOfLocal()
172 localDateTime, zone, preferredOffset, zonedDateTime); in checkOfLocal()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java136 ChronoLocalDateTimeImpl<R> localDateTime, ZoneId zone, ZoneOffset preferredOffset) { in ofBest() argument
137 Objects.requireNonNull(localDateTime, "localDateTime"); in ofBest()
140 return new ChronoZonedDateTimeImpl<>(localDateTime, (ZoneOffset) zone, zone); in ofBest()
143 LocalDateTime isoLDT = LocalDateTime.from(localDateTime); in ofBest()
150 localDateTime = localDateTime.plusSeconds(trans.getDuration().getSeconds()); in ofBest()
160 return new ChronoZonedDateTimeImpl<>(localDateTime, offset, zone); in ofBest()
176 ChronoLocalDateTimeImpl<?> cldt = (ChronoLocalDateTimeImpl<?>)chrono.localDateTime(ldt); in ofInstant()
DMinguoChronology.java262 public ChronoLocalDateTime<MinguoDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method in MinguoChronology
263 return (ChronoLocalDateTime<MinguoDate>)super.localDateTime(temporal); in localDateTime()
DThaiBuddhistChronology.java298 public ChronoLocalDateTime<ThaiBuddhistDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method in ThaiBuddhistChronology
299 return (ChronoLocalDateTime<ThaiBuddhistDate>)super.localDateTime(temporal); in localDateTime()
DChronology.java475 … default ChronoLocalDateTime<? extends ChronoLocalDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method
515 …ronoLocalDateTimeImpl<?> cldt = ChronoLocalDateTimeImpl.ensureValid(this, localDateTime(temporal)); in zonedDateTime()
DJapaneseChronology.java318 public ChronoLocalDateTime<JapaneseDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method in JapaneseChronology
319 return (ChronoLocalDateTime<JapaneseDate>)super.localDateTime(temporal); in localDateTime()
DHijrahChronology.java474 public ChronoLocalDateTime<HijrahDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method in HijrahChronology
475 return (ChronoLocalDateTime<HijrahDate>) super.localDateTime(temporal); in localDateTime()
DChronoLocalDateTime.java180 return chrono.localDateTime(temporal); in from()
DIsoChronology.java370 public LocalDateTime localDateTime(TemporalAccessor temporal) { in localDateTime() method in IsoChronology
DChronoLocalDateTimeImpl.java369 … ChronoLocalDateTime<D> end = (ChronoLocalDateTime<D>) getChronology().localDateTime(endExclusive); in until()
/libcore/luni/src/test/java/libcore/java/time/zone/
DZoneRulesTest.java59 LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, offset); in test_of_ZoneOffset() local
60 assertNull(zoneRules.getTransition(localDateTime)); in test_of_ZoneOffset()
62 zoneRules.getValidOffsets(localDateTime)); in test_of_ZoneOffset()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRules.java561 public ZoneOffset getOffset(LocalDateTime localDateTime) { in getOffset() argument
562 Object info = getOffsetInfo(localDateTime); in getOffset()
611 public List<ZoneOffset> getValidOffsets(LocalDateTime localDateTime) { in getValidOffsets() argument
613 Object info = getOffsetInfo(localDateTime); in getValidOffsets()
654 public ZoneOffsetTransition getTransition(LocalDateTime localDateTime) { in getTransition() argument
655 Object info = getOffsetInfo(localDateTime); in getTransition()
846 public boolean isValidOffset(LocalDateTime localDateTime, ZoneOffset offset) { in isValidOffset() argument
847 return getValidOffsets(localDateTime).contains(offset); in isValidOffset()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime.java115 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime); in test_get_same() local
116 OffsetDateTime a = OffsetDateTime.of(localDateTime, offset); in test_get_same()
121 assertSame(a.toLocalDateTime(), localDateTime); in test_get_same() local
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestChronoLocalDate.java188 ChronoLocalDateTime<?> ldt = chrono.localDateTime(now);
195 ChronoLocalDateTime<? extends ChronoLocalDate> ldt = chrono.localDateTime(now);
DTestUmmAlQuraChronology.java721 … ChronoLocalDateTime<HijrahDate> result = HijrahChronology.INSTANCE.localDateTime(accessor); in test_localDateTime()
727 … ChronoLocalDateTime<HijrahDate> result = HijrahChronology.INSTANCE.localDateTime(accessor); in test_localDateTime()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronoZonedDateTimeTest.java81 ChronoLocalDateTime<JapaneseDate> chronoLocalDateTime = chrono.localDateTime(epochTime); in testFormat()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoLocalDateTime.java324 ChronoLocalDateTime<?> dateTime = chrono.localDateTime(refDateTime); in test_from_TemporalAccessor()
349 ChronoLocalDateTime<?> test = chrono.localDateTime(LocalDateTime.of(2010, 6, 30, 11, 30)); in test_getChronology()
DTCKIsoChronology.java195 assertEquals(IsoChronology.INSTANCE.localDateTime(new TemporalAccessor() { in test_localDateTime_TemporalAccessor()
231 IsoChronology.INSTANCE.localDateTime(null); in test_localDateTime_TemporalAccessor_null()
DTCKMinguoChronology.java427 … ChronoLocalDateTime<MinguoDate> result = MinguoChronology.INSTANCE.localDateTime(accessor); in test_localDateTime()
433 … ChronoLocalDateTime<MinguoDate> result = MinguoChronology.INSTANCE.localDateTime(accessor); in test_localDateTime()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKOffsetDateTime.java500 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime);
501 OffsetDateTime a = OffsetDateTime.of(localDateTime, offset);
509 assertEquals(a.getHour(), localDateTime.getHour());
510 assertEquals(a.getMinute(), localDateTime.getMinute());
511 assertEquals(a.getSecond(), localDateTime.getSecond());
512 assertEquals(a.getNano(), localDateTime.getNano());
515 assertEquals(a.toString(), localDateTime.toString() + offset.toString());
DTCKZonedDateTime.java829 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime);
830 ZoneOffset offset = zone.getRules().getOffset(localDateTime);
831 ZonedDateTime a = ZonedDateTime.of(localDateTime, zone);
846 assertEquals(a.toLocalDateTime(), localDateTime);
848 assertEquals(a.toString(), localDateTime.toString() + offset.toString());
850 …assertEquals(a.toString(), localDateTime.toString() + offset.toString() + "[" + zone.toString() + …
/libcore/api/
Dcurrent.txt12320 …hrono.ChronoLocalDateTime<? extends java.time.chrono.ChronoLocalDate> localDateTime(java.time.temp…
12355 …method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.HijrahDate> localDateTime(java…
12413 method public java.time.LocalDateTime localDateTime(java.time.temporal.TemporalAccessor);
12445 …method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.JapaneseDate> localDateTime(ja…
12510 …method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.MinguoDate> localDateTime(java…
12565 …va.time.chrono.ChronoLocalDateTime<java.time.chrono.ThaiBuddhistDate> localDateTime(java.time.temp…