core / io.islandtime / IslandTime / initialize

initialize

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun initialize(block: Initializer.() -> Unit): Unit

Initializes Island Time.

This method should be called prior to any of use of the library, usually during an application's initialization process. If Island Time is not explicitly initialized, the PlatformTimeZoneRulesProvider and all other default settings will be used.

Exceptions

IllegalStateException - if Island Time has already been initialized