Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/
DClock.java377 public abstract Clock withZone(ZoneId zone); in withZone() method in Clock
459 public Clock withZone(ZoneId zone) { in withZone() method in Clock.SystemClock
509 public Clock withZone(ZoneId zone) { in withZone() method in Clock.FixedClock
559 public Clock withZone(ZoneId zone) { in withZone() method in Clock.OffsetClock
563 return new OffsetClock(baseClock.withZone(zone), offset); in withZone()
609 public Clock withZone(ZoneId zone) { in withZone() method in Clock.TickClock
613 return new TickClock(baseClock.withZone(zone), tickNanos); in withZone()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeParsing.java99 private static final DateTimeFormatter LOCALFIELDS_WITH_PARIS = LOCALFIELDS.withZone(PARIS);
100 … private static final DateTimeFormatter LOCALFIELDS_WITH_0230 = LOCALFIELDS.withZone(OFFSET_0230);
103 private static final DateTimeFormatter INSTANT_WITH_PARIS = INSTANT.withZone(PARIS);
104 private static final DateTimeFormatter INSTANT_WITH_0230 = INSTANT.withZone(OFFSET_0230);
111 … private static final DateTimeFormatter INSTANTSECONDS_WITH_PARIS = INSTANTSECONDS.withZone(PARIS);
114 … static final DateTimeFormatter INSTANTSECONDS_NOS_WITH_PARIS = INSTANTSECONDS_NOS.withZone(PARIS);
/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.java193 Clock changed = test.withZone(MOSCOW); in test_withZone()
200 Clock changed = test.withZone(PARIS); in test_withZone_equal()
206 Clock.tick(Clock.system(PARIS), Duration.ofMillis(500)).withZone(null); in test_withZone_null()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestClock_System.java80 Clock changed = test.withZone(PARIS); in test_withZone_same()
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()
/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.java949 f = f.withZone(EUROPE_ATHENS); in test_withZone_override()
968 f = f.withZone(EUROPE_ATHENS); in test_withZone_parsedZone_override()
1103 f = f.withZone(EUROPE_PARIS); in test_fieldResolvesToChronoZonedDateTime_overrideZone_matches()
1111 f = f.withZone(ZoneId.of("Europe/London")); in test_fieldResolvesToChronoZonedDateTime_overrideZone_wrongZone()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java1545 public DateTimeFormatter withZone(ZoneId zone) { in withZone() method in DateTimeFormatter