/libcore/ojluni/src/main/java/java/time/ |
D | ZonedDateTime.java | 287 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/ |
D | ZonedDateTimeTest.java | 98 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/ |
D | ChronoZonedDateTimeImpl.java | 136 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()
|
D | MinguoChronology.java | 262 public ChronoLocalDateTime<MinguoDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method in MinguoChronology 263 return (ChronoLocalDateTime<MinguoDate>)super.localDateTime(temporal); in localDateTime()
|
D | ThaiBuddhistChronology.java | 298 public ChronoLocalDateTime<ThaiBuddhistDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method in ThaiBuddhistChronology 299 return (ChronoLocalDateTime<ThaiBuddhistDate>)super.localDateTime(temporal); in localDateTime()
|
D | Chronology.java | 475 … default ChronoLocalDateTime<? extends ChronoLocalDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method 515 …ronoLocalDateTimeImpl<?> cldt = ChronoLocalDateTimeImpl.ensureValid(this, localDateTime(temporal)); in zonedDateTime()
|
D | JapaneseChronology.java | 318 public ChronoLocalDateTime<JapaneseDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method in JapaneseChronology 319 return (ChronoLocalDateTime<JapaneseDate>)super.localDateTime(temporal); in localDateTime()
|
D | HijrahChronology.java | 474 public ChronoLocalDateTime<HijrahDate> localDateTime(TemporalAccessor temporal) { in localDateTime() method in HijrahChronology 475 return (ChronoLocalDateTime<HijrahDate>) super.localDateTime(temporal); in localDateTime()
|
D | ChronoLocalDateTime.java | 180 return chrono.localDateTime(temporal); in from()
|
D | IsoChronology.java | 370 public LocalDateTime localDateTime(TemporalAccessor temporal) { in localDateTime() method in IsoChronology
|
D | ChronoLocalDateTimeImpl.java | 369 … ChronoLocalDateTime<D> end = (ChronoLocalDateTime<D>) getChronology().localDateTime(endExclusive); in until()
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | ZoneRulesTest.java | 59 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/ |
D | ZoneRules.java | 561 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/ |
D | TestOffsetDateTime.java | 115 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/ |
D | TestChronoLocalDate.java | 188 ChronoLocalDateTime<?> ldt = chrono.localDateTime(now); 195 ChronoLocalDateTime<? extends ChronoLocalDate> ldt = chrono.localDateTime(now);
|
D | TestUmmAlQuraChronology.java | 721 … 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/ |
D | ChronoZonedDateTimeTest.java | 81 ChronoLocalDateTime<JapaneseDate> chronoLocalDateTime = chrono.localDateTime(epochTime); in testFormat()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoLocalDateTime.java | 324 ChronoLocalDateTime<?> dateTime = chrono.localDateTime(refDateTime); in test_from_TemporalAccessor() 349 ChronoLocalDateTime<?> test = chrono.localDateTime(LocalDateTime.of(2010, 6, 30, 11, 30)); in test_getChronology()
|
D | TCKIsoChronology.java | 195 assertEquals(IsoChronology.INSTANCE.localDateTime(new TemporalAccessor() { in test_localDateTime_TemporalAccessor() 231 IsoChronology.INSTANCE.localDateTime(null); in test_localDateTime_TemporalAccessor_null()
|
D | TCKMinguoChronology.java | 427 … 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/ |
D | TCKOffsetDateTime.java | 500 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());
|
D | TCKZonedDateTime.java | 829 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/ |
D | current.txt | 12320 …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…
|