()
| 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> |
no outgoing calls