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

Method getDefaultTZ

base/src/main/java/net/time4j/tz/Timezone.java:1448–1459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1446 }
1447
1448 private static Timezone getDefaultTZ() {
1449
1450 String zoneID = java.util.TimeZone.getDefault().getID();
1451 Timezone ret = Timezone.getTZ(null, zoneID, false);
1452
1453 if (ret == null) {
1454 // exception case if the zoneID cannot be resolved
1455 ret = new PlatformTimezone(new NamedID(zoneID));
1456 }
1457
1458 return ret;
1459 }
1460
1461 private static Timezone getTZ(
1462 TZID tzid,

Callers 2

TimezoneClass · 0.95
refreshMethod · 0.95

Calls 2

getTZMethod · 0.95
getIDMethod · 0.45

Tested by

no test coverage detected