Home
last modified time | relevance | path

Searched refs:zonedDateTime (Results 1 – 20 of 20) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/
DZonedDateTimeTest.java100 ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(localDateTime, offset, zone); in checkOfInstant() local
102 localDateTime, offset, zone, zonedDateTime); in checkOfInstant()
105 assertEquals("zone" + message, zone, zonedDateTime.getZone()); in checkOfInstant()
107 assertEquals("offset" + message, expectedOffset, zonedDateTime.getOffset()); in checkOfInstant()
108 assertEquals("localDateTime" + message, expectedDateTime, zonedDateTime.toLocalDateTime()); in checkOfInstant()
113 expectedDateTime, zonedDateTime.toLocalDateTime()); in checkOfInstant()
170 ZonedDateTime zonedDateTime = ZonedDateTime.ofLocal(localDateTime, zone, preferredOffset); in checkOfLocal() local
172 localDateTime, zone, preferredOffset, zonedDateTime); in checkOfLocal()
175 assertEquals("zone" + message, zone, zonedDateTime.getZone()); in checkOfLocal()
176 assertEquals("offset" + message, expectedOffset, zonedDateTime.getOffset()); in checkOfLocal()
[all …]
/libcore/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java100 ZonedDateTime zonedDateTime = ZonedDateTime in test_zonedDateTime() local
106 .zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getZone()); in test_zonedDateTime()
114 IsoChronology.INSTANCE.zonedDateTime(null, ZoneOffset.UTC); in test_zonedDateTime_nullInstant()
119 IsoChronology.INSTANCE.zonedDateTime(Instant.EPOCH, null); in test_zonedDateTime_nullZone()
DJapaneseChronologyTest.java49 ZonedDateTime zonedDateTime = ZonedDateTime in test_zonedDateTime() local
53 .zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getZone()); in test_zonedDateTime()
61 JapaneseChronology.INSTANCE.zonedDateTime(null, ZoneOffset.UTC); in test_zonedDateTime_nullInstant()
66 JapaneseChronology.INSTANCE.zonedDateTime(Instant.EPOCH, null); in test_zonedDateTime_nullZone()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterTest.java78 ZonedDateTime zonedDateTime = Instant.EPOCH.atZone(ZoneId.of("UTC")); in test_format_locale_agq() local
80 formatWithPattern(locale, "qqqq"/* standalone full quarter */, zonedDateTime)); in test_format_locale_agq()
86 ZonedDateTime zonedDateTime = Instant.EPOCH.atZone(ZoneId.of("UTC")); in test_format_locale_en_US() local
88 formatWithPattern(locale, "qqqq"/* standalone full quarter */, zonedDateTime)); in test_format_locale_en_US()
/libcore/ojluni/src/main/java/java/time/chrono/
DMinguoChronology.java268 public ChronoZonedDateTime<MinguoDate> zonedDateTime(TemporalAccessor temporal) { in zonedDateTime() method in MinguoChronology
269 return (ChronoZonedDateTime<MinguoDate>)super.zonedDateTime(temporal); in zonedDateTime()
274 public ChronoZonedDateTime<MinguoDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime() method in MinguoChronology
275 return (ChronoZonedDateTime<MinguoDate>)super.zonedDateTime(instant, zone); in zonedDateTime()
DThaiBuddhistChronology.java304 public ChronoZonedDateTime<ThaiBuddhistDate> zonedDateTime(TemporalAccessor temporal) { in zonedDateTime() method in ThaiBuddhistChronology
305 return (ChronoZonedDateTime<ThaiBuddhistDate>)super.zonedDateTime(temporal); in zonedDateTime()
310 public ChronoZonedDateTime<ThaiBuddhistDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime() method in ThaiBuddhistChronology
311 return (ChronoZonedDateTime<ThaiBuddhistDate>)super.zonedDateTime(instant, zone); in zonedDateTime()
DChronology.java502 … default ChronoZonedDateTime<? extends ChronoLocalDate> zonedDateTime(TemporalAccessor temporal) { in zonedDateTime() method
507 return zonedDateTime(instant, zone); in zonedDateTime()
528 …default ChronoZonedDateTime<? extends ChronoLocalDate> zonedDateTime(Instant instant, ZoneId zone)… in zonedDateTime() method
DJapaneseChronology.java324 public ChronoZonedDateTime<JapaneseDate> zonedDateTime(TemporalAccessor temporal) { in zonedDateTime() method in JapaneseChronology
325 return (ChronoZonedDateTime<JapaneseDate>)super.zonedDateTime(temporal); in zonedDateTime()
330 public ChronoZonedDateTime<JapaneseDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime() method in JapaneseChronology
331 return (ChronoZonedDateTime<JapaneseDate>)super.zonedDateTime(instant, zone); in zonedDateTime()
DHijrahChronology.java534 public ChronoZonedDateTime<HijrahDate> zonedDateTime(TemporalAccessor temporal) { in zonedDateTime() method in HijrahChronology
535 return (ChronoZonedDateTime<HijrahDate>) super.zonedDateTime(temporal); in zonedDateTime()
540 public ChronoZonedDateTime<HijrahDate> zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime() method in HijrahChronology
541 return (ChronoZonedDateTime<HijrahDate>) super.zonedDateTime(instant, zone); in zonedDateTime()
DIsoChronology.java290 public ZonedDateTime zonedDateTime(TemporalAccessor temporal) { in zonedDateTime() method in IsoChronology
305 public ZonedDateTime zonedDateTime(Instant instant, ZoneId zone) { in zonedDateTime() method in IsoChronology
DChronoZonedDateTime.java174 return chrono.zonedDateTime(temporal); in from()
DChronoZonedDateTimeImpl.java313 … ChronoZonedDateTime<D> end = (ChronoZonedDateTime<D>) getChronology().zonedDateTime(endExclusive); in until()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java669 … ChronoZonedDateTime<HijrahDate> result = HijrahChronology.INSTANCE.zonedDateTime(accessor); in test_zonedDateTime()
676 … ChronoZonedDateTime<HijrahDate> result = HijrahChronology.INSTANCE.zonedDateTime(accessor); in test_zonedDateTime()
690 ZonedDateTime zonedDateTime = ZonedDateTime.of(2012, 2, 29, 2, 7, 1, 1, ZONE_RIYADH); in test_Instant_zonedDateTime() local
692 …ChronoZonedDateTime<HijrahDate> result = HijrahChronology.INSTANCE.zonedDateTime(offsetDateTime.to… in test_Instant_zonedDateTime()
696 …result = HijrahChronology.INSTANCE.zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getOffse… in test_Instant_zonedDateTime()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKMinguoChronology.java461 … ChronoZonedDateTime<MinguoDate> result = MinguoChronology.INSTANCE.zonedDateTime(accessor); in test_zonedDateTime()
468 … ChronoZonedDateTime<MinguoDate> result = MinguoChronology.INSTANCE.zonedDateTime(accessor); in test_zonedDateTime()
482 ZonedDateTime zonedDateTime = ZonedDateTime.of(2012, 2, 29, 2, 7, 1, 1, ZONE_PARIS); in test_Instant_zonedDateTime() local
484 …ChronoZonedDateTime<MinguoDate> result = MinguoChronology.INSTANCE.zonedDateTime(offsetDateTime.to… in test_Instant_zonedDateTime()
488 …result = MinguoChronology.INSTANCE.zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getOffse… in test_Instant_zonedDateTime()
DTCKChronoZonedDateTime.java327 ChronoZonedDateTime<?> dateTime = chrono.zonedDateTime(refDateTime); in test_from_TemporalAccessor()
350 …ChronoZonedDateTime<?> test = chrono.zonedDateTime(ZonedDateTime.of(2010, 6, 30, 11, 30, 0, 0, Zon… in test_getChronology()
DTCKIsoChronology.java229 assertEquals(IsoChronology.INSTANCE.zonedDateTime(new TemporalAccessor() { in test_zonedDateTime_TemporalAccessor()
275 IsoChronology.INSTANCE.zonedDateTime(null); in test_zonedDateTime_TemporalAccessor_null()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java150 return chrono.zonedDateTime(Instant.from(temporal), overrideZone); in adjust()
DParsed.java344 ChronoZonedDateTime<?> zdt = chrono.zonedDateTime(instant, selectedZone); in resolveInstantFields0()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java285 …ChronoZonedDateTime<ThaiBuddhistDate> thaiZdt = ThaiBuddhistChronology.INSTANCE.zonedDateTime(zdt); in data_format_withZone_withChronology()
/libcore/api/
Dcurrent.txt11433 …hrono.ChronoZonedDateTime<? extends java.time.chrono.ChronoLocalDate> zonedDateTime(java.time.temp…
11434 …hrono.ChronoZonedDateTime<? extends java.time.chrono.ChronoLocalDate> zonedDateTime(java.time.Inst…
11464 …method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.HijrahDate> zonedDateTime(java…
11465 …method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.HijrahDate> zonedDateTime(java…
11517 method public java.time.ZonedDateTime zonedDateTime(java.time.temporal.TemporalAccessor);
11518 method public java.time.ZonedDateTime zonedDateTime(java.time.Instant, java.time.ZoneId);
11548 …method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.JapaneseDate> zonedDateTime(ja…
11549 …method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.JapaneseDate> zonedDateTime(ja…
11606 …method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.MinguoDate> zonedDateTime(java…
11607 …method public java.time.chrono.ChronoZonedDateTime<java.time.chrono.MinguoDate> zonedDateTime(java…
[all …]