Home
last modified time | relevance | path

Searched refs:zid (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/format/
DZoneName.java32 public static String toZid(String zid, Locale locale) { in toZid() argument
33 String mzone = zidToMzone.get(zid); in toZid()
34 if (mzone == null && aliases.containsKey(zid)) { in toZid()
35 zid = aliases.get(zid); in toZid()
36 mzone = zidToMzone.get(zid); in toZid()
41 zid = map.get(locale.getCountry()); in toZid()
43 zid = mzoneToZid.get(mzone); in toZid()
46 return toZid(zid); in toZid()
49 public static String toZid(String zid) { in toZid() argument
50 if (aliases.containsKey(zid)) { in toZid()
[all …]
DTestZoneTextPrinterParser.java88 for (String zid : zids) { in test_printText()
89 if (zid.equals("ROC") || zid.startsWith("Etc/GMT")) { in test_printText()
94 if (!zid.equals(ZoneMeta.getCanonicalCLDRID(zid))) { in test_printText()
97 zdt = zdt.withZoneSameLocal(ZoneId.of(zid)); in test_printText()
98 TimeZone tz = TimeZone.getTimeZone(zid); in test_printText()
215 String zid = names[0]; in parseText() local
216 String expected = ZoneName.toZid(zid, locale); in parseText()
218 parse(fmt, zid, expected, zid, locale, style, ci); in parseText()
221 parse(fmt, zid, expected, names[i], locale, style, ci); in parseText()
227 String zid, String expected, String text, in parse() argument
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DZoneName.java44 public static String toZid(String zid, Locale locale) { in toZid() argument
46 if (tzNames.getAvailableMetaZoneIDs().contains(zid)) { in toZid()
54 zid = tzNames.getReferenceZoneID(zid, region); in toZid()
56 return toZid(zid); in toZid()
59 public static String toZid(String zid) { in toZid() argument
61 String canonicalCldrId = ZoneMeta.getCanonicalCLDRID(zid); in toZid()
65 return zid; in toZid()
DDateTimeFormatterBuilder.java3777 for (String zid : regionIds) { in getTree()
3778 tree.add(zid, zid); // don't convert zid -> metazone in getTree()
3779 zid = ZoneName.toZid(zid, locale); in getTree()
3780 timeZoneNames.getDisplayNames(zid, types, now, names, 0); in getTree()
3783 tree.add(names[i], zid); in getTree()
3790 for (String zid : regionIds) { in getTree()
3791 if (!preferredZones.contains(zid)) { in getTree()
3794 String canonicalId = ZoneName.toZid(zid, locale); in getTree()
3798 tree.add(names[i], zid); in getTree()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKZoneIdPrinterParser.java289 ZoneId zid = parsed.query(TemporalQueries.zoneId()); in test_parseSuccess_caseInsensitive() local
/libcore/ojluni/src/main/java/java/util/
DFormatter.java4256 ZoneId zid = t.query(TemporalQueries.zone());
4257 if (zid == null) {
4260 if (!(zid instanceof ZoneOffset) &&
4263 sb.append(TimeZone.getTimeZone(zid.getId())
4264 .getDisplayName(zid.getRules().isDaylightSavings(instant),
4269 sb.append(zid.getId());