/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestInstantSource.java | 50 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 …]
|
D | TestClock_Offset.java | 83 Clock changed = test.withZone(PARIS); in test_withZone_same()
|
D | TestClock_Fixed.java | 85 Clock changed = test.withZone(PARIS); in test_withZone_same()
|
D | TestClock_Tick.java | 87 Clock changed = test.withZone(PARIS); in test_withZone_same()
|
D | TestClock_System.java | 88 Clock changed = test.withZone(PARIS); in test_withZone_same()
|
/libcore/luni/src/test/java/libcore/highmemorytest/java/time/format/ |
D | DateTimeFormatterTest.java | 64 .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/ |
D | InstantSource.java | 152 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
|
D | Clock.java | 411 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/ |
D | TestDateTimeParsing.java | 105 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_…
|
D | TestUnicodeExtension.java | 857 .withChronology(chrono).withZone(zone).localizedBy(locale); in test_localizedBy() 880 .withChronology(chrono).withZone(zone).withLocale(locale); in test_withLocale()
|
D | TestDateTimeFormatter.java | 259 .withZone(zone); in test_throws_message_zone()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock_System.java | 136 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()
|
D | TCKClock_Fixed.java | 104 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()
|
D | TCKClock.java | 96 public Clock withZone(ZoneId timeZone) { in withZone() method in TCKClock.MockInstantClock 128 Clock changed = MOCK_INSTANT.withZone(london); in test_mockInstantClock_withZone()
|
D | TCKClock_Offset.java | 113 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()
|
D | TCKClock_Tick.java | 204 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/ |
D | DateTimeFormatterTest.java | 111 .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/ |
D | TCKSignStyle.java | 123 formatter = formatter.withZone(ZoneOffset.UTC); in test_signStyle()
|
D | TCKDateTimeFormatter.java | 164 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()
|
D | TCKDateTimeParseResolver.java | 953 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()
|
D | TCKDateTimeFormatterBuilder.java | 671 DateTimeFormatter df = DateTimeFormatter.ofPattern(pattern, Locale.US).withZone(zId); in test_appendZoneText_parseNonGenricTimeZonePatterns_2()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 1645 public DateTimeFormatter withZone(ZoneId zone) { in withZone() method in DateTimeFormatter
|
/libcore/api/ |
D | current.txt | 11390 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);
|