Home
last modified time | relevance | path

Searched refs:atZone (Results 1 – 25 of 32) 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()
DTCKChronoLocalDateTime.java327 ChronoLocalDateTime<?> test2 = ChronoLocalDateTime.from(dateTime.atZone(ZoneOffset.UTC)); 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/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/format/
DTCKOffsetPrinterParser.java235 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()
DTCKZoneIdPrinterParser.java116 ZonedDateTime zdt = ldt.atZone(zone); in test_print()
124 ZonedDateTime zdt = ldt.atZone(zone); in test_print_pattern_VV()
DTCKDateTimeParseResolver.java1074 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/
DTCKZonedDateTime.java492 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 …]
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.java171 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/
DTestDateTimeParsing.java130 {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/
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/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/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTime.java430 ChronoZonedDateTime<D> atZone(ZoneId zone); in atZone() method
DChronoZonedDateTimeImpl.java360 return dateTime.atZone(offset).withZoneSameLocal(zone); in readExternal()
DChronoLocalDateTimeImpl.java365 public ChronoZonedDateTime<D> atZone(ZoneId zone) { in atZone() method in ChronoLocalDateTimeImpl
/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/format/
DParsed.java590 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/
DTestFormatter.java96 ChronoZonedDateTime<?> zdt0 = ldt0.atZone(ZoneId.of("America/Los_Angeles")); in test()
/libcore/ojluni/src/main/java/java/time/
DInstant.java1206 public ZonedDateTime atZone(ZoneId zone) { in atZone() method in Instant

12