Home
last modified time | relevance | path

Searched refs:zonedDateTime (Results 1 – 18 of 18) 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.java46 ZonedDateTime zonedDateTime = ZonedDateTime in test_zonedDateTime() local
50 .zonedDateTime(zonedDateTime.toInstant(), zonedDateTime.getZone()); in test_zonedDateTime()
58 JapaneseChronology.INSTANCE.zonedDateTime(null, ZoneOffset.UTC); in test_zonedDateTime_nullInstant()
63 JapaneseChronology.INSTANCE.zonedDateTime(Instant.EPOCH, null); in test_zonedDateTime_nullZone()
/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()