Home
last modified time | relevance | path

Searched refs:withZone (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/
DTestInstantSource.java50 assertSame(test.withZone(ZoneOffset.UTC), Clock.systemUTC()); in test_system()
51 assertEquals(test.withZone(PARIS), Clock.system(PARIS)); in test_system()
67 …assertEquals(test.withZone(ZoneOffset.UTC), Clock.tick(Clock.fixed(instant, ZoneOffset.UTC), durat…
68 assertEquals(test.withZone(PARIS), Clock.tick(Clock.fixed(instant, PARIS), duration));
79 assertEquals(test.withZone(ZoneOffset.UTC), Clock.fixed(instant, ZoneOffset.UTC));
80 assertEquals(test.withZone(PARIS), Clock.fixed(instant, PARIS));
92 …assertEquals(test.withZone(ZoneOffset.UTC), Clock.offset(Clock.fixed(instant, ZoneOffset.UTC), dur…
93 assertEquals(test.withZone(PARIS), Clock.offset(Clock.fixed(instant, PARIS), duration));
111 assertEquals(test.withZone(ZoneOffset.UTC).getZone(), ZoneOffset.UTC);
112 assertEquals(test.withZone(PARIS).getZone(), PARIS);
[all …]
DTestClock_Offset.java83 Clock changed = test.withZone(PARIS); in test_withZone_same()
DTestClock_Fixed.java85 Clock changed = test.withZone(PARIS); in test_withZone_same()
DTestClock_Tick.java87 Clock changed = test.withZone(PARIS); in test_withZone_same()
DTestClock_System.java88 Clock changed = test.withZone(PARIS); in test_withZone_same()
/libcore/luni/src/test/java/libcore/highmemorytest/java/time/format/
DDateTimeFormatterTest.java64 .withZone(ZoneOffset.UTC) in test_format_allLocales()
69 .withZone(ZoneOffset.UTC) in test_format_allLocales()
74 .withZone(ZoneOffset.UTC) in test_format_allLocales()
94 .withZone(ZoneOffset.UTC) in test_format_allLocales_allChronologies()
100 .withZone(ZoneOffset.UTC) in test_format_allLocales_allChronologies()
106 .withZone(ZoneOffset.UTC) in test_format_allLocales_allChronologies()
/libcore/ojluni/src/main/java/java/time/
DInstantSource.java152 return Clock.tick(baseSource.withZone(ZoneOffset.UTC), tickDuration); in tick()
195 return Clock.offset(baseSource.withZone(ZoneOffset.UTC), offsetDuration); in offset()
250 default Clock withZone(ZoneId zone) { in withZone() method
DClock.java411 public abstract Clock withZone(ZoneId zone); in withZone() method in Clock
543 public Clock withZone(ZoneId zone) { in withZone() method in Clock.SystemInstantSource
598 public Clock withZone(ZoneId zone) { in withZone() method in Clock.SystemClock
651 public Clock withZone(ZoneId zone) { in withZone() method in Clock.FixedClock
701 public Clock withZone(ZoneId zone) { in withZone() method in Clock.OffsetClock
705 return new OffsetClock(baseClock.withZone(zone), offset); in withZone()
751 public Clock withZone(ZoneId zone) { in withZone() method in Clock.TickClock
755 return new TickClock(baseClock.withZone(zone), tickNanos); in withZone()
809 public Clock withZone(ZoneId zone) { in withZone() method in Clock.SourceClock
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeParsing.java105 private static final DateTimeFormatter LOCALFIELDS_WITH_PARIS = LOCALFIELDS.withZone(PARIS);
106 … private static final DateTimeFormatter LOCALFIELDS_WITH_0230 = LOCALFIELDS.withZone(OFFSET_0230);
109 private static final DateTimeFormatter INSTANT_WITH_PARIS = INSTANT.withZone(PARIS);
110 private static final DateTimeFormatter INSTANT_WITH_0230 = INSTANT.withZone(OFFSET_0230);
111 private static final DateTimeFormatter INSTANT_WITH_NEW_YORK = INSTANT.withZone(NEW_YORK);
118 … private static final DateTimeFormatter INSTANTSECONDS_WITH_PARIS = INSTANTSECONDS.withZone(PARIS);
121 … static final DateTimeFormatter INSTANTSECONDS_NOS_WITH_PARIS = INSTANTSECONDS_NOS.withZone(PARIS);
124 …private static final DateTimeFormatter INSTANTSECONDS_WITH_NEW_YORK = INSTANTSECONDS.withZone(NEW_…
DTestUnicodeExtension.java857 .withChronology(chrono).withZone(zone).localizedBy(locale); in test_localizedBy()
880 .withChronology(chrono).withZone(zone).withLocale(locale); in test_withLocale()
DTestDateTimeFormatter.java259 .withZone(zone); in test_throws_message_zone()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock_System.java136 Clock changed = test.withZone(MOSCOW); in test_withZone()
143 Clock changed = test.withZone(PARIS); in test_withZone_equal()
149 Clock changed = test.withZone(PARIS); in test_withZone_fromUTC()
155 Clock.systemUTC().withZone(null); in test_withZone_null()
DTCKClock_Fixed.java104 Clock changed = test.withZone(MOSCOW); in test_withZone()
111 Clock changed = test.withZone(PARIS); in test_withZone_equal()
117 Clock.fixed(INSTANT, PARIS).withZone(null); in test_withZone_null()
DTCKClock.java96 public Clock withZone(ZoneId timeZone) { in withZone() method in TCKClock.MockInstantClock
128 Clock changed = MOCK_INSTANT.withZone(london); in test_mockInstantClock_withZone()
DTCKClock_Offset.java113 Clock changed = test.withZone(MOSCOW); in test_withZone()
120 Clock changed = test.withZone(PARIS); in test_withZone_equal()
126 Clock.offset(Clock.system(PARIS), OFFSET).withZone(null); in test_withZone_null()
DTCKClock_Tick.java204 Clock changed = test.withZone(MOSCOW); in test_withZone()
211 Clock changed = test.withZone(PARIS); in test_withZone_equal()
217 Clock.tick(Clock.system(PARIS), Duration.ofMillis(500)).withZone(null); in test_withZone_null()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterTest.java111 .withZone(ZoneOffset.UTC); in test_format_locale_my_MM()
123 .withZone(ZoneOffset.UTC); in test_format_locale_de_AT()
135 .withZone(ZoneOffset.UTC); in test_format_locale_tok()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKSignStyle.java123 formatter = formatter.withZone(ZoneOffset.UTC); in test_signStyle()
DTCKDateTimeFormatter.java164 test = test.withZone(ZoneId.of("Europe/Paris")); in test_withZone()
166 test = test.withZone(ZoneOffset.UTC); in test_withZone()
168 test = test.withZone(null); in test_withZone()
363 .withChronology(overrideChrono).withZone(overrideZone); in test_format_withZone_withChronology()
DTCKDateTimeParseResolver.java953 f = f.withZone(EUROPE_ATHENS); in test_withZone_override()
972 f = f.withZone(EUROPE_ATHENS); in test_withZone_parsedZone_override()
1107 f = f.withZone(EUROPE_PARIS); in test_fieldResolvesToChronoZonedDateTime_overrideZone_matches()
1115 f = f.withZone(ZoneId.of("Europe/London")); in test_fieldResolvesToChronoZonedDateTime_overrideZone_wrongZone()
DTCKDateTimeFormatterBuilder.java671 DateTimeFormatter df = DateTimeFormatter.ofPattern(pattern, Locale.US).withZone(zId); in test_appendZoneText_parseNonGenricTimeZonePatterns_2()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java1645 public DateTimeFormatter withZone(ZoneId zone) { in withZone() method in DateTimeFormatter
/libcore/api/
Dcurrent.txt11390 method public abstract java.time.Clock withZone(java.time.ZoneId);
11526 method public default java.time.Clock withZone(java.time.ZoneId);
12640 method public java.time.format.DateTimeFormatter withZone(java.time.ZoneId);