MCPcopy Create free account
hub / github.com/MenoData/Time4J / resolve

Method resolve

base/src/main/java/net/time4j/tz/Timezone.java:1667–1686  ·  view source on GitHub ↗
(String zoneKey)

Source from the content-addressed store, hash-verified

1665 }
1666
1667 private static TZID resolve(String zoneKey) {
1668
1669 // enums bevorzugen
1670 TZID resolved = PREDEFINED.get(zoneKey);
1671
1672 if (resolved == null) {
1673 if (zoneKey.startsWith("GMT")) {
1674 zoneKey = "UTC" + zoneKey.substring(3);
1675 }
1676
1677 resolved = ZonalOffset.parse(zoneKey, false);
1678
1679 if (resolved == null) {
1680 resolved = new NamedID(zoneKey);
1681 }
1682 }
1683
1684 return resolved;
1685
1686 }
1687
1688 private static void fillEtcetera(Map<String, TZID> map) {
1689 map.put("Etc/GMT", ZonalOffset.UTC);

Callers 6

TimezoneClass · 0.95
getAvailableIDsMethod · 0.95
getPreferredIDsMethod · 0.95
ofMethod · 0.95
normalizeMethod · 0.95
getTZMethod · 0.95

Calls 2

parseMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected