Home
last modified time | relevance | path

Searched refs:atZone (Results 1 – 25 of 37) sorted by relevance

12

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoZonedDateTime.java118 … 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 …]
DTCKChronoLocalDate.java319 …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/
DTCKChronoZonedDateTimeSerialization.java98 … 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/
DCurrencyTest.java53 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/
DTestDateTimeParsing.java143 {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/
DTCKZonedDateTimeSerialization.java117 …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()
DTCKClockSerialization.java86 …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/
DTCKZonedDateTime.java486 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 …]
DTCKClock_Fixed.java81 …private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneO…
DTCKClock_Offset.java82 …private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneO…
DTCKClock_Tick.java83 …private static final ZonedDateTime ZDT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(Zon…
DTCKLocalDateTime.java170 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/
DDateTimeFormatterTest.java86 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/
DTestClock_Fixed.java80 …private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneO…
DTestClock_Tick.java82 …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/
DTCKOffsetPrinterParser.java474 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()
DTCKZoneIdPrinterParser.java116 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/
DZipEntryTest.java176 .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/
DTimeApisConsistencyTest.java153 String javaResult = instantToCheck.atZone(ZoneId.of(timeZoneId)).format(formatter); in compareWithBionic()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestExampleCode.java172 ChronoZonedDateTime<HijrahDate> zhdt = hdt.atZone(ZoneId.of("GMT")); in HijrahExample1()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTime.java437 ChronoZonedDateTime<D> atZone(ZoneId zone); in atZone() method
DChronoZonedDateTimeImpl.java362 return dateTime.atZone(offset).withZoneSameLocal(zone); in readExternal()
DChronoLocalDateTimeImpl.java360 public ChronoZonedDateTime<D> atZone(ZoneId zone) { in atZone() method in ChronoLocalDateTimeImpl
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java651 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/
DTestFormatter.java101 ChronoZonedDateTime<?> zdt0 = ldt0.atZone(ZoneId.of("America/Los_Angeles")); in test()

12