/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()
|
/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/luni/src/test/java/libcore/highmemorytest/java/util/ |
D | CurrencyTest.java | 53 LocalDateTime.of(2023, 2, 1, 0, 0).atZone(ZoneId.of("GMT")).toInstant() in test_currencyCodeIcuConsistency() 61 LocalDateTime.of(2025, 5, 1, 0, 0).atZone(ZoneId.of("GMT")).toInstant() in test_currencyCodeIcuConsistency()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 143 {INSTANTSECONDS_WITH_PARIS, "86402", Instant.ofEpochSecond(86402).atZone(PARIS)}, in data_instantZones() 144 …TSECONDS_NOS_WITH_PARIS, "86402.123456789", Instant.ofEpochSecond(86402, 123456789).atZone(PARIS)}, in data_instantZones() 145 … {INSTANTSECONDS_OFFSETSECONDS, "86402 9000", Instant.ofEpochSecond(86402).atZone(OFFSET_0230)}, in data_instantZones() 146 …{INSTANTSECONDS_WITH_NEW_YORK, "1604206800", Instant.ofEpochSecond(1604206800).atZone(NEW_YORK)}, … in data_instantZones() 147 …{INSTANTSECONDS_WITH_NEW_YORK, "1604210400", Instant.ofEpochSecond(1604210400).atZone(NEW_YORK)}, … in data_instantZones()
|
/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/ |
D | TCKZonedDateTime.java | 486 ZonedDateTime expected = LocalDateTime.of(1970, 1, 1, 0, 0, 0, 0).atZone(ZoneOffset.UTC); 1209 ZonedDateTime zdt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS); 1218 ZonedDateTime zdt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS); 1228 ZonedDateTime zdt = TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS); 1237 ZonedDateTime zdt = TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS); 1246 ZonedDateTime zdt = TEST_PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS); 1305 {TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS), YEAR, 2009, 1307 {TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS), MONTH_OF_YEAR, 7, 1309 {TEST_LOCAL_2008_06_30_11_30_59_500.atZone(ZONE_PARIS), DAY_OF_MONTH, 15, 1311 {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 | 170 MAX_INSTANT = MAX_DATE_TIME.atZone(ZoneOffset.UTC).toInstant(); in setUp() 171 MIN_INSTANT = MIN_DATE_TIME.atZone(ZoneOffset.UTC).toInstant(); in setUp() 2969 assertEquals(t.atZone(ZONE_PARIS), 2976 …assertEquals(t.atZone(OFFSET_PTWO), ZonedDateTime.of(LocalDateTime.of(2008, 6, 30, 11, 30), OFFSET… 2982 assertEquals(t.atZone(ZONE_GAZA), 2989 assertEquals(t.atZone(ZONE_PARIS), 2996 t.atZone((ZoneId) null);
|
/libcore/luni/src/test/java/libcore/java/time/format/ |
D | DateTimeFormatterTest.java | 86 ZonedDateTime zonedDateTime = Instant.EPOCH.atZone(ZoneId.of("UTC")); in test_format_locale_agq() 94 ZonedDateTime zonedDateTime = Instant.EPOCH.atZone(ZoneId.of("UTC")); in test_format_locale_en_US()
|
/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/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKOffsetPrinterParser.java | 474 ZonedDateTime zdt = ldt.atZone(zone); in test_print() 496 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_X() 524 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_x() 535 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_Z() 548 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_Z() 558 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()
|
/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/luni/src/test/java/libcore/java/time/ |
D | TimeApisConsistencyTest.java | 153 String javaResult = instantToCheck.atZone(ZoneId.of(timeZoneId)).format(formatter); in compareWithBionic()
|
/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/chrono/ |
D | ChronoLocalDateTime.java | 437 ChronoZonedDateTime<D> atZone(ZoneId zone); in atZone() method
|
D | ChronoZonedDateTimeImpl.java | 362 return dateTime.atZone(offset).withZoneSameLocal(zone); in readExternal()
|
D | ChronoLocalDateTimeImpl.java | 360 public ChronoZonedDateTime<D> atZone(ZoneId zone) { in atZone() method in ChronoLocalDateTimeImpl
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 651 long instant = date.atTime(time).atZone(offset).toEpochSecond(); in resolveInstant() 655 long instant = date.atTime(time).atZone(zone).toEpochSecond(); in resolveInstant()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 101 ChronoZonedDateTime<?> zdt0 = ldt0.atZone(ZoneId.of("America/Los_Angeles")); in test()
|