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

Method ofSystem

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

Source from the content-addressed store, hash-verified

502 * @see #ofPlatform()
503 */
504 public static Timezone ofSystem() {
505
506 if (ALLOW_SYSTEM_TZ_OVERRIDE && (currentSystemTZ != null)) {
507 return currentSystemTZ;
508 } else {
509 // detect premature class initialization
510 assert (SYSTEM_TZ_ORIGINAL != null);
511 return SYSTEM_TZ_ORIGINAL;
512 }
513
514 }
515
516 /**
517 * <p>Obtains the platform timezone with data and rules of the platform. </p>

Callers 15

inStdTimezoneMethod · 0.95
ofPlatformMethod · 0.95
getAvailableIDsMethod · 0.95
systemTZMethod · 0.95
inStdTimezoneMethod · 0.95
inStdTimezoneMethod · 0.95
inLocalViewMethod · 0.95

Calls

no outgoing calls

Tested by 8

inStdTimezoneMethod · 0.76
ofPlatformMethod · 0.76
getAvailableIDsMethod · 0.76
systemTZMethod · 0.76