/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoZonedDateTime.java | 118 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badWithAdjusterChrono() 121 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badWithAdjusterChrono() 141 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badPlusAdjusterChrono() 144 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badPlusAdjusterChrono() 165 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badMinusAdjusterChrono() 168 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badMinusAdjusterChrono() 189 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badPlusTemporalUnitChrono() 192 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badPlusTemporalUnitChrono() 213 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badMinusTemporalUnitChrono() 216 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badMinusTemporalUnitChrono() [all …]
|
D | TCKChronoLocalDate.java | 319 …ChronoLocalDate test3 = ChronoLocalDate.from(date.atTime(LocalTime.of(12, 30)).atZone(ZoneOffset.U… in test_from_TemporalAccessor()
|
D | TCKChronoLocalDateTime.java | 327 ChronoLocalDateTime<?> test2 = ChronoLocalDateTime.from(dateTime.atZone(ZoneOffset.UTC)); in test_from_TemporalAccessor()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoZonedDateTimeSerialization.java | 98 … ZonedDateTime ref = LocalDate.of(2013, 1, 5).atTime(12, 1, 2, 3).atZone(ZoneId.of("GMT+01:23")); in test_ChronoZonedDateTimeSerialization() 99 …ChronoZonedDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()).atZone(ref.getZone()); in test_ChronoZonedDateTimeSerialization()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKZonedDateTimeSerialization.java | 117 …ZonedDateTime zdt = LocalDateTime.of(2012, 9, 16, 22, 17, 59, 470_000_000).atZone(ZoneId.of("Europ… in test_serialization_format_zoneId() 138 …ZonedDateTime zdt = LocalDateTime.of(2012, 9, 16, 22, 17, 59, 470_000_000).atZone(ZoneOffset.ofHou… in test_serialization_format_zoneOffset()
|
D | TCKClockSerialization.java | 86 …private static final ZonedDateTime ZDT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(Zon…
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKOffsetPrinterParser.java | 235 ZonedDateTime zdt = ldt.atZone(zone); in test_print() 257 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_X() 285 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_x() 296 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_Z() 309 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_Z() 319 ZonedDateTime zdt = ldt.atZone(offset); in test_print_localized()
|
D | TCKZoneIdPrinterParser.java | 116 ZonedDateTime zdt = ldt.atZone(zone); in test_print() 124 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_VV()
|
D | TCKDateTimeParseResolver.java | 1074 ChronoZonedDateTime<MinguoDate> mzdt = mdt.atTime(LocalTime.NOON).atZone(EUROPE_PARIS); in test_fieldResolvesToChronoZonedDateTime_overrideChrono_matches() 1086 …me<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON).atZone(EUROPE_PARIS); in test_fieldResolvesToChronoZonedDateTime_noOverrideChrono_wrongChrono() 1093 …me<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON).atZone(EUROPE_PARIS); in test_fieldResolvesToChronoZonedDateTime_overrideChrono_wrongChrono()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZonedDateTime.java | 492 ZonedDateTime expected = LocalDateTime.of(1970, 1, 1, 0, 0, 0, 0).atZone(ZoneOffset.UTC); 1214 ZonedDateTime zdt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS); 1223 ZonedDateTime zdt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS); 1233 ZonedDateTime zdt = TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS); 1242 ZonedDateTime zdt = TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS); 1251 ZonedDateTime zdt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS); 1310 {TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS), YEAR, 2009, 1312 {TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS), MONTH_OF_YEAR, 7, 1314 {TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS), DAY_OF_MONTH, 15, 1316 {TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS), HOUR_OF_DAY, 14, [all …]
|
D | TCKClock_Fixed.java | 81 …private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneO…
|
D | TCKClock_Offset.java | 82 …private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneO…
|
D | TCKClock_Tick.java | 83 …private static final ZonedDateTime ZDT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(Zon…
|
D | TCKLocalDateTime.java | 171 MAX_INSTANT = MAX_DATE_TIME.atZone(ZoneOffset.UTC).toInstant(); in setUp() 172 MIN_INSTANT = MIN_DATE_TIME.atZone(ZoneOffset.UTC).toInstant(); in setUp() 2975 assertEquals(t.atZone(ZONE_PARIS), 2982 …assertEquals(t.atZone(OFFSET_PTWO), ZonedDateTime.of(LocalDateTime.of(2008, 6, 30, 11, 30), OFFSET… 2988 assertEquals(t.atZone(ZONE_GAZA), 2995 assertEquals(t.atZone(ZONE_PARIS), 3002 t.atZone((ZoneId) null);
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 130 {INSTANTSECONDS_WITH_PARIS, "86402", Instant.ofEpochSecond(86402).atZone(PARIS)}, in data_instantZones() 131 …TSECONDS_NOS_WITH_PARIS, "86402.123456789", Instant.ofEpochSecond(86402, 123456789).atZone(PARIS)}, in data_instantZones() 132 … {INSTANTSECONDS_OFFSETSECONDS, "86402 9000", Instant.ofEpochSecond(86402).atZone(OFFSET_0230)}, in data_instantZones()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestClock_Fixed.java | 80 …private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneO…
|
D | TestClock_Tick.java | 82 …private static final ZonedDateTime ZDT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(Zon…
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | ZipEntryTest.java | 176 .atZone(ZoneId.systemDefault()).toInstant().toEpochMilli()); in testSetTime() 179 checkSetTime(LocalDate.of(1980, 1, 1).atStartOfDay().atZone(ZoneId.systemDefault()) in testSetTime()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTime.java | 430 ChronoZonedDateTime<D> atZone(ZoneId zone); in atZone() method
|
D | ChronoZonedDateTimeImpl.java | 360 return dateTime.atZone(offset).withZoneSameLocal(zone); in readExternal()
|
D | ChronoLocalDateTimeImpl.java | 365 public ChronoZonedDateTime<D> atZone(ZoneId zone) { in atZone() method in ChronoLocalDateTimeImpl
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestExampleCode.java | 172 ChronoZonedDateTime<HijrahDate> zhdt = hdt.atZone(ZoneId.of("GMT")); in HijrahExample1()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 590 long instant = date.atTime(time).atZone(zone).getLong(ChronoField.INSTANT_SECONDS); in resolveInstant() 596 … long instant = date.atTime(time).atZone(offset).getLong(ChronoField.INSTANT_SECONDS); in resolveInstant()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 96 ChronoZonedDateTime<?> zdt0 = ldt0.atZone(ZoneId.of("America/Los_Angeles")); in test()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 1206 public ZonedDateTime atZone(ZoneId zone) { in atZone() method in Instant
|