Skip to content

//core/io.islandtime/IslandTime/initializeWith

initializeWith

common

fun initializeWith(provider: TimeZoneRulesProvider)

Initializes Island Time with a specific time zone rules provider, leaving all other settings in their default state.

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.

See also

IslandTime.initialize

Throws

IllegalStateException if Island Time has already been initialized