/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKZoneIdPrinterParser.java | 68 import java.time.ZoneId; 90 private static final ZoneId EUROPE_PARIS = ZoneId.of("Europe/Paris"); 91 private static final ZoneId AMERICA_NEW_YORK = ZoneId.of("America/New_York"); 115 public void test_print(LocalDateTime ldt, ZoneId zone, String expected) { in test_print() 123 public void test_print_pattern_VV(LocalDateTime ldt, ZoneId zone, String expected) { in test_print_pattern_VV() 155 {"Z", 1, -1, ZoneId.of("Z")}, in data_parseSuccess() 156 {"UTC", 3, -1, ZoneId.of("UTC")}, in data_parseSuccess() 157 {"UT", 2, -1, ZoneId.of("UT")}, in data_parseSuccess() 158 {"GMT", 3, -1, ZoneId.of("GMT")}, in data_parseSuccess() 161 {"UTC+00:00", 9, -1, ZoneId.of("UTC")}, in data_parseSuccess() [all …]
|
D | TCKFormatStyle.java | 60 import java.time.ZoneId; 80 private static final ZoneId ZONEID_PARIS = ZoneId.of("Europe/Paris"); 81 private static final ZoneId OFFSET_PTWO = ZoneOffset.of("+02:00");
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZoneId.java | 74 import java.time.ZoneId; 100 Map<String, String> ids = ZoneId.SHORT_IDS; in test_constant_OLD_IDS_POST_2005() 133 Map<String, String> ids = ZoneId.SHORT_IDS; in test_constant_OLD_IDS_POST_2005_immutable() 142 Set<String> zoneIds = ZoneId.getAvailableZoneIds(); in test_getAvailableGroupIds() 146 Set<String> zoneIds2 = ZoneId.getAvailableZoneIds(); in test_getAvailableGroupIds() 158 ZoneId test = ZoneId.of("LONDON", map); in test_of_string_Map() 167 ZoneId test = ZoneId.of("Europe/Madrid", map); in test_of_string_Map_lookThrough() 174 ZoneId test = ZoneId.of("Europe/Madrid", map); in test_of_string_Map_emptyMap() 181 ZoneId.of("Not known", map); in test_of_string_Map_badFormat() 187 ZoneId.of("Unknown", map); in test_of_string_Map_unknown() [all …]
|
D | TCKClock.java | 66 import java.time.ZoneId; 78 final ZoneId zone; 79 MockInstantClock(long millis, ZoneId zone) { in MockInstantClock() 92 public ZoneId getZone() { in getZone() 96 public Clock withZone(ZoneId timeZone) { in withZone() 114 private static final ZoneId ZONE = ZoneId.of("Europe/Paris"); 127 ZoneId london = ZoneId.of("Europe/London"); in test_mockInstantClock_withZone()
|
D | TCKClock_System.java | 67 import java.time.ZoneId; 78 private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow"); 79 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); 119 assertEquals(test.getZone(), ZoneId.systemDefault()); in test_systemDefaultZone() 120 assertEquals(test, Clock.system(ZoneId.systemDefault())); in test_systemDefaultZone()
|
D | TCKClock_Fixed.java | 68 import java.time.ZoneId; 79 private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow"); 80 private static final ZoneId PARIS = ZoneId.of("Europe/Paris");
|
D | TCKClock_Offset.java | 69 import java.time.ZoneId; 80 private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow"); 81 private static final ZoneId PARIS = ZoneId.of("Europe/Paris");
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKZoneIdSerialization.java | 69 import java.time.ZoneId; 84 assertSerializable(ZoneId.of("Europe/London")); in test_serialization() 85 assertSerializable(ZoneId.of("America/Chicago")); in test_serialization() 96 assertSerializedBySer(ZoneId.of("Europe/London"), bytes); in test_serialization_format() 103 ZoneId deser = deserialize(id); in test_deserialization_lenient_characters() 128 ZoneId deserialized = deserialize(input); in test_deserialization_lenient_offsetNotAllowed_noPrefix() 129 assertEquals(deserialized, ZoneId.of(input)); in test_deserialization_lenient_offsetNotAllowed_noPrefix() 130 assertEquals(deserialized, ZoneId.of(resolvedId)); in test_deserialization_lenient_offsetNotAllowed_noPrefix() 135 ZoneId deserialized = deserialize("UTC" + input); in test_deserialization_lenient_offsetNotAllowed_prefixUTC() 136 assertEquals(deserialized, ZoneId.of("UTC" + input)); in test_deserialization_lenient_offsetNotAllowed_prefixUTC() [all …]
|
D | TCKClockSerialization.java | 68 import java.time.ZoneId; 82 private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow"); 83 private static final ZoneId PARIS = ZoneId.of("Europe/Paris");
|
D | TCKZonedDateTimeSerialization.java | 70 import java.time.ZoneId; 81 private static final ZoneId ZONE_0100 = OFFSET_0100; 82 private static final ZoneId ZONE_PARIS = ZoneId.of("Europe/Paris"); 117 …ZonedDateTime zdt = LocalDateTime.of(2012, 9, 16, 22, 17, 59, 470_000_000).atZone(ZoneId.of("Europ… in test_serialization_format_zoneId()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Clock.java | 178 return new SystemClock(ZoneId.systemDefault()); in systemDefaultZone() 196 public static Clock system(ZoneId zone) { in system() 221 public static Clock tickSeconds(ZoneId zone) { in tickSeconds() 244 public static Clock tickMinutes(ZoneId zone) { in tickMinutes() 314 public static Clock fixed(Instant fixedInstant, ZoneId zone) { in fixed() 365 public abstract ZoneId getZone(); in getZone() 377 public abstract Clock withZone(ZoneId zone); in withZone() 449 private final ZoneId zone; 451 SystemClock(ZoneId zone) { in SystemClock() 455 public ZoneId getZone() { in getZone() [all …]
|
D | ZoneId.java | 172 public abstract class ZoneId implements Serializable { class 268 public static ZoneId systemDefault() { in systemDefault() 305 public static ZoneId of(String zoneId, Map<String, String> aliasMap) { in of() 353 public static ZoneId of(String zoneId) { in of() 370 public static ZoneId ofOffset(String prefix, ZoneOffset offset) { in ofOffset() 397 static ZoneId of(String zoneId, boolean checkAvailable) { in of() 417 private static ZoneId ofWithPrefix(String zoneId, int prefixLength, boolean checkAvailable) { in ofWithPrefix() 457 public static ZoneId from(TemporalAccessor temporal) { in from() 458 ZoneId obj = temporal.query(TemporalQueries.zone()); in from() 470 ZoneId() { in ZoneId() method in ZoneId [all …]
|
D | ZonedDateTime.java | 177 private final ZoneId zone; 209 public static ZonedDateTime now(ZoneId zone) { in now() 258 public static ZonedDateTime of(LocalDate date, LocalTime time, ZoneId zone) { in of() 286 public static ZonedDateTime of(LocalDateTime localDateTime, ZoneId zone) { in of() 332 int hour, int minute, int second, int nanoOfSecond, ZoneId zone) { in of() 360 …public static ZonedDateTime ofLocal(LocalDateTime localDateTime, ZoneId zone, ZoneOffset preferred… in ofLocal() 400 public static ZonedDateTime ofInstant(Instant instant, ZoneId zone) { in ofInstant() 426 …public static ZonedDateTime ofInstant(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone)… in ofInstant() 446 private static ZonedDateTime create(long epochSecond, int nanoOfSecond, ZoneId zone) { in create() 468 …public static ZonedDateTime ofStrict(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) { in ofStrict() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | ZoneId.java | 68 public abstract class ZoneId implements java.io.Serializable { class 70 ZoneId() { in ZoneId() method in ZoneId 74 public static java.time.ZoneId systemDefault() { in systemDefault() 82 public static java.time.ZoneId of( in of() 87 public static java.time.ZoneId of(java.lang.String zoneId) { in of() 91 public static java.time.ZoneId ofOffset(java.lang.String prefix, java.time.ZoneOffset offset) { in ofOffset() 96 static java.time.ZoneId of(java.lang.String zoneId, boolean checkAvailable) { in of() 100 private static java.time.ZoneId ofWithPrefix( in ofWithPrefix() 105 public static java.time.ZoneId from(java.time.temporal.TemporalAccessor temporal) { in from() 122 public java.time.ZoneId normalized() { in normalized()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneTextPrinterParser.java | 29 import java.time.ZoneId; 97 zdt = zdt.withZoneSameLocal(ZoneId.of(zid)); in test_printText() 144 private static Set<ZoneId> preferred = new HashSet<>(Arrays.asList(new ZoneId[] { 145 ZoneId.of("EST", ZoneId.SHORT_IDS), 146 ZoneId.of("Asia/Taipei"), 147 ZoneId.of("CET"), 150 private static Set<ZoneId> preferred_s = new HashSet<>(Arrays.asList(new ZoneId[] { 151 ZoneId.of("EST", ZoneId.SHORT_IDS), 152 ZoneId.of("CET"), 153 ZoneId.of("Australia/South"), [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestZoneId.java | 72 import java.time.ZoneId; 100 Class<ZoneId> cls = ZoneId.class; in test_immutable() 116 ZoneId test = ZoneOffset.UTC; in test_constant_UTC() 128 ZoneId test = ZoneId.systemDefault(); in test_systemDefault() 137 ZoneId.systemDefault(); in test_systemDefault_unableToConvert_badFormat() 148 ZoneId.systemDefault(); in test_systemDefault_unableToConvert_unknownId() 158 ZoneId test = ZoneId.of("Europe/London"); in test_London() 164 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffset() 180 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffset_toDST() 195 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffset_fromDST() [all …]
|
D | TestClock_Tick.java | 68 import java.time.ZoneId; 80 private static final ZoneId MOSCOW = ZoneId.of("Europe/Moscow"); 81 private static final ZoneId PARIS = ZoneId.of("Europe/Paris");
|
D | TestClock_System.java | 66 import java.time.ZoneId; 76 private static final ZoneId PARIS = ZoneId.of("Europe/Paris");
|
D | TestClock_Offset.java | 67 import java.time.ZoneId; 77 private static final ZoneId PARIS = ZoneId.of("Europe/Paris");
|
D | TestClock_Fixed.java | 68 import java.time.ZoneId; 79 private static final ZoneId PARIS = ZoneId.of("Europe/Paris");
|
/libcore/luni/src/test/java/libcore/java/time/format/ |
D | DateTimeFormatterBuilderTest.java | 23 import java.time.ZoneId; 56 formatter.format(ZonedDateTime.now(ZoneId.of("Europe/London")))); in test_appendZoneRegionId_format() 58 formatter.format(ZonedDateTime.now(ZoneId.of("UTC")))); in test_appendZoneRegionId_format() 78 assertEquals(ZoneId.of("Europe/London"), in test_appendZoneRegionId_parse() 80 assertEquals(ZoneId.of("UTC"), in test_appendZoneRegionId_parse() 82 assertEquals(ZoneId.of("GMT+1"), in test_appendZoneRegionId_parse() 86 assertEquals(ZoneId.of("UTC+01:00"), in test_appendZoneRegionId_parse()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalQueries.java | 70 import java.time.ZoneId; 167 public static TemporalQuery<ZoneId> zoneId() { in zoneId() 267 public static TemporalQuery<ZoneId> zone() { in zone() 344 static final TemporalQuery<ZoneId> ZONE_ID = (temporal) -> 373 static final TemporalQuery<ZoneId> ZONE = (temporal) -> { 374 ZoneId zone = temporal.query(ZONE_ID);
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
D | TCKZoneRulesSerialization.java | 68 import java.time.ZoneId; 105 return ZoneId.of("Europe/London").getRules(); in europeLondon() 113 return ZoneId.of("Europe/Paris").getRules(); in europeParis() 120 return ZoneId.of("America/New_York").getRules(); in americaNewYork()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTimeImpl.java | 74 import java.time.ZoneId; 123 private final transient ZoneId zone; 135 ChronoLocalDateTimeImpl<R> localDateTime, ZoneId zone, ZoneOffset preferredOffset) { in ofBest() 170 static ChronoZonedDateTimeImpl<?> ofInstant(Chronology chrono, Instant instant, ZoneId zone) { in ofInstant() 187 private ChronoZonedDateTimeImpl<D> create(Instant instant, ZoneId zone) { in create() 218 …private ChronoZonedDateTimeImpl(ChronoLocalDateTimeImpl<D> dateTime, ZoneOffset offset, ZoneId zon… in ChronoZonedDateTimeImpl() 261 public ZoneId getZone() { in getZone() 266 public ChronoZonedDateTime<D> withZoneSameLocal(ZoneId zone) { in withZoneSameLocal() 271 public ChronoZonedDateTime<D> withZoneSameInstant(ZoneId zone) { in withZoneSameInstant() 359 ZoneId zone = (ZoneId) in.readObject(); in readExternal()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronology.java | 71 import java.time.ZoneId; 222 ZoneId zoneId_paris = ZoneId.of("Europe/Paris"); in test_MinguoChronology_dateNow() 233 ZoneId zoneId_paris = ZoneId.of("Europe/Paris"); in test_IsoChronology_dateNow() 244 ZoneId zoneId_paris = ZoneId.of("Europe/Paris"); in test_JapaneseChronology_dateNow() 255 ZoneId zoneId_paris = ZoneId.of("Europe/Paris"); in test_ThaiBuddhistChronology_dateNow()
|