Searched refs:zoneId (Results 1 - 25 of 48) sorted by relevance

12

/openjdk9/jdk/src/java.base/share/classes/java/time/
H A DZoneId.java302 * @param zoneId the time-zone ID, not null
308 public static ZoneId of(String zoneId, Map<String, String> aliasMap) { argument
309 Objects.requireNonNull(zoneId, "zoneId");
311 String id = Objects.requireNonNullElse(aliasMap.get(zoneId), zoneId);
350 * @param zoneId the time-zone ID, not null
355 public static ZoneId of(String zoneId) { argument
356 return of(zoneId, true);
393 * @param zoneId th
399 of(String zoneId, boolean checkAvailable) argument
419 ofWithPrefix(String zoneId, int prefixLength, boolean checkAvailable) argument
[all...]
H A DZoneRegion.java108 * @param zoneId the time-zone ID, not null
114 static ZoneRegion ofId(String zoneId, boolean checkAvailable) { argument
115 Objects.requireNonNull(zoneId, "zoneId");
116 checkName(zoneId);
120 rules = ZoneRulesProvider.getRules(zoneId, true);
126 return new ZoneRegion(zoneId, rules);
132 * @param zoneId the time-zone ID, not null
135 private static void checkName(String zoneId) { argument
136 int n = zoneId
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/time/zone/
H A DZoneRulesProvider.java223 * @param zoneId the zone ID as defined by {@code ZoneId}, not null
232 public static ZoneRules getRules(String zoneId, boolean forCaching) { argument
233 Objects.requireNonNull(zoneId, "zoneId");
234 return getProvider(zoneId).provideRules(zoneId, forCaching);
256 * @param zoneId the zone ID as defined by {@code ZoneId}, not null
261 public static NavigableMap<String, ZoneRules> getVersions(String zoneId) { argument
262 Objects.requireNonNull(zoneId, "zoneId");
273 getProvider(String zoneId) argument
404 provideRules(String zoneId, boolean forCaching) argument
429 provideVersions(String zoneId) argument
[all...]
H A DTzdbZoneRulesProvider.java126 protected ZoneRules provideRules(String zoneId, boolean forCaching) { argument
128 Object obj = regionToRules.get(zoneId);
130 throw new ZoneRulesException("Unknown time-zone ID: " + zoneId);
137 regionToRules.put(zoneId, obj);
141 throw new ZoneRulesException("Invalid binary time-zone data: TZDB:" + zoneId + ", version: " + versionId, ex);
146 protected NavigableMap<String, ZoneRules> provideVersions(String zoneId) { argument
148 ZoneRules rules = getRules(zoneId, false);
/openjdk9/jdk/test/java/time/tck/java/time/zone/
H A DTCKZoneRulesProvider.java192 protected NavigableMap<String, ZoneRules> provideVersions(String zoneId) { argument
198 protected ZoneRules provideRules(String zoneId, boolean forCaching) { argument
199 if (zoneId.equals("FooLocation")) {
215 protected NavigableMap<String, ZoneRules> provideVersions(String zoneId) { argument
224 protected ZoneRules provideRules(String zoneId, boolean forCaching) { argument
226 if (zoneId.equals("DynamicLocation")) {
/openjdk9/jdk/src/java.base/share/classes/java/time/temporal/
H A DTemporalAccessor.java275 * if (query == TemporalQueries.zoneId() ||
309 if (query == TemporalQueries.zoneId()
H A DTemporalQueries.java113 * <li> a zoneId.
167 public static TemporalQuery<ZoneId> zoneId() { method in class:TemporalQueries
253 * It first tries to obtain the zone, using {@link #zoneId()}.
258 * In most cases, applications should use this query rather than {@code #zoneId()}.
/openjdk9/jdk/src/java.base/share/classes/sun/util/calendar/
H A DZoneInfoFile.java111 public static ZoneInfo getZoneInfo(String zoneId) { argument
112 if (zoneId == null) {
115 ZoneInfo zi = getZoneInfo0(zoneId);
118 zi.setID(zoneId);
123 private static ZoneInfo getZoneInfo0(String zoneId) { argument
125 ZoneInfo zi = zones.get(zoneId);
129 String zid = zoneId;
130 if (aliases.containsKey(zoneId)) {
131 zid = aliases.get(zoneId);
140 zones.put(zoneId, z
350 getZoneInfo(DataInput in, String zoneId) argument
421 getZoneInfo(String zoneId, long[] standardTransitions, int[] standardOffsets, long[] savingsInstantTransitions, int[] wallOffsets, ZoneOffsetTransitionRule[] lastRules) argument
[all...]
/openjdk9/jdk/test/java/time/tck/java/time/format/
H A DTCKDateTimeFormatters.java227 Integer year, Integer month, Integer day, String offsetId, String zoneId,
229 TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId);
244 Integer year, Integer month, Integer day, String offsetId, String zoneId,
321 Integer year, Integer month, Integer day, String offsetId, String zoneId,
323 TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId);
338 Integer year, Integer month, Integer day, String offsetId, String zoneId,
379 Integer year, Integer month, Integer day, String offsetId, String zoneId,
381 TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId);
396 Integer year, Integer month, Integer day, String offsetId, String zoneId,
451 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId,
226 test_print_isoLocalDate( Integer year, Integer month, Integer day, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
243 test_parse_isoLocalDate( Integer year, Integer month, Integer day, String offsetId, String zoneId, String input, Class<?> invalid) argument
320 test_print_isoOffsetDate( Integer year, Integer month, Integer day, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
337 test_parse_isoOffsetDate( Integer year, Integer month, Integer day, String offsetId, String zoneId, String input, Class<?> invalid) argument
378 test_print_isoDate( Integer year, Integer month, Integer day, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
395 test_parse_isoDate( Integer year, Integer month, Integer day, String offsetId, String zoneId, String input, Class<?> invalid) argument
450 test_print_isoLocalTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
467 test_parse_isoLocalTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
520 test_print_isoOffsetTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
537 test_parse_isoOffsetTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
590 test_print_isoTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
607 test_parse_isoTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
670 test_print_isoLocalDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
688 test_parse_isoLocalDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
749 test_print_isoOffsetDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
767 test_parse_isoOffsetDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
838 test_print_isoZonedDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
856 test_parse_isoZonedDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
922 test_print_isoDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument
940 test_parse_isoDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument
1339 buildAccessor( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId) argument
1370 buildAccessor(LocalDateTime base, String offsetId, String zoneId) argument
1378 buildAccessor(LocalDate base, String offsetId, String zoneId) argument
1395 buildCalendrical(Expected expected, String offsetId, String zoneId) argument
1416 ZoneId zoneId; field in class:TCKDateTimeFormatters.MockAccessor
1452 setZone(String zoneId) argument
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/util/
H A DTimeZone.java297 this.zoneId = null; // invalidate cache
522 * Gets the {@code TimeZone} for the given {@code zoneId}.
524 * @param zoneId a {@link ZoneId} from which the time zone ID is obtained
527 * @throws NullPointerException if {@code zoneId} is {@code null}
530 public static TimeZone getTimeZone(ZoneId zoneId) { argument
531 String tzid = zoneId.getId(); // throws an NPE if null
549 ZoneId zId = zoneId;
551 zoneId = zId = toZoneId0();
780 private transient ZoneId zoneId; field in class:TimeZone
/openjdk9/jdk/test/java/util/logging/
H A DXMLFormatterDate.java51 TimeStamp(ZoneId zoneId) { argument
52 zdt = ZonedDateTime.now(zoneId);
/openjdk9/jdk/make/src/classes/build/tools/tzdb/
H A DTzdbZoneRulesProvider.java89 public ZoneRules getZoneRules(String zoneId) { argument
90 Object obj = zones.get(zoneId);
92 String zoneId0 = zoneId;
93 if (links.containsKey(zoneId)) {
94 zoneId = links.get(zoneId);
95 obj = zones.get(zoneId);
101 String zoneIdBack = zoneId;
102 if (links.containsKey(zoneId)) {
103 zoneId
682 buildRules(String zoneId, List<ZoneLine> zones) argument
[all...]
H A DTzdbZoneRulesCompiler.java192 for (String zoneId : provider.getZoneIds()) {
193 printVerbose("Building zone " + zoneId);
194 builtZones.put(zoneId, provider.getZoneRules(zoneId));
/openjdk9/jdk/test/java/time/test/java/time/format/
H A DTestCharLiteralParser.java115 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
H A DTestStringLiteralParser.java118 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
H A DTestNumberParser.java182 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
202 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
317 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
427 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
518 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
556 assertEquals(parsed.query(TemporalQueries.zoneId()), null);
/openjdk9/jdk/test/java/util/Currency/
H A DCurrencyTest.java154 ZoneId zoneId = ZoneId.of(switchOverTZ[i]);
156 LocalTime.MIDNIGHT, zoneId);
157 ZonedDateTime currentZonedDateAndTime = ZonedDateTime.now(zoneId);
/openjdk9/jdk/test/java/time/tck/java/time/
H A DTCKZoneId.java337 ZoneId zoneId = ZoneId.ofOffset(prefix, zoff);
338 assertEquals(zoneId.getId(), prefix + zoff.getId(), "in correct id for : " + prefix + ", zoff: " + zoff);
356 ZoneId zoneId = ZoneId.ofOffset(prefix, zoff);
522 if (query == TemporalQueries.zoneId()) {
/openjdk9/jdk/test/java/time/tck/java/time/chrono/
H A DTCKHijrahChronology.java117 ZoneId zoneId = ZoneId.of("Europe/Paris");
118 assertEquals(HijrahChronology.INSTANCE.dateNow(zoneId), HijrahChronology.INSTANCE.dateNow(Clock.system(zoneId))) ;
119 assertEquals(HijrahChronology.INSTANCE.dateNow(zoneId), HijrahChronology.INSTANCE.dateNow(Clock.system(zoneId).getZone())) ;
120 assertEquals(HijrahChronology.INSTANCE.dateNow(zoneId), HijrahDate.now(Clock.system(zoneId))) ;
121 assertEquals(HijrahChronology.INSTANCE.dateNow(zoneId), HijrahDate.now(Clock.system(zoneId).getZone())) ;
H A DTCKMinguoChronology.java196 ZoneId zoneId = ZoneId.of("Europe/Paris");
197 assertEquals(MinguoChronology.INSTANCE.dateNow(zoneId), MinguoChronology.INSTANCE.dateNow(Clock.system(zoneId))) ;
198 assertEquals(MinguoChronology.INSTANCE.dateNow(zoneId), MinguoChronology.INSTANCE.dateNow(Clock.system(zoneId).getZone())) ;
199 assertEquals(MinguoChronology.INSTANCE.dateNow(zoneId), MinguoDate.now(Clock.system(zoneId))) ;
200 assertEquals(MinguoChronology.INSTANCE.dateNow(zoneId), MinguoDate.now(Clock.system(zoneId).getZone())) ;
H A DTCKThaiBuddhistChronology.java233 ZoneId zoneId = ZoneId.of("Europe/Paris");
234 assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(zoneId), ThaiBuddhistChronology.INSTANCE.dateNow(Clock.system(zoneId))) ;
235 assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(zoneId), ThaiBuddhistChronology.INSTANCE.dateNow(Clock.system(zoneId).getZone())) ;
236 assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(zoneId), ThaiBuddhistDate.now(Clock.system(zoneId))) ;
237 assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(zoneId), ThaiBuddhistDate.now(Clock.system(zoneId).getZone())) ;
H A DTCKJapaneseChronology.java321 ZoneId zoneId = ZoneId.of("Europe/Paris");
322 assertEquals(JapaneseChronology.INSTANCE.dateNow(zoneId), JapaneseChronology.INSTANCE.dateNow(Clock.system(zoneId))) ;
323 assertEquals(JapaneseChronology.INSTANCE.dateNow(zoneId), JapaneseChronology.INSTANCE.dateNow(Clock.system(zoneId).getZone())) ;
324 assertEquals(JapaneseChronology.INSTANCE.dateNow(zoneId), JapaneseDate.now(Clock.system(zoneId))) ;
325 assertEquals(JapaneseChronology.INSTANCE.dateNow(zoneId), JapaneseDate.now(Clock.system(zoneId).getZone())) ;
/openjdk9/jdk/src/java.base/share/classes/java/time/format/
H A DDateTimePrintContext.java133 ZoneId temporalZone = temporal.query(TemporalQueries.zoneId());
213 if (query == TemporalQueries.zoneId()) {
/openjdk9/jdk/src/java.base/share/classes/java/time/chrono/
H A DChronoLocalDate.java508 if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone() || query == TemporalQueries.offset()) {
H A DChronoZonedDateTime.java484 if (query == TemporalQueries.zone() || query == TemporalQueries.zoneId()) {

Completed in 99 milliseconds

12