//core/io.islandtime.zone/PlatformTimeZoneRulesProvider
PlatformTimeZoneRulesProvider¶
common
expect object PlatformTimeZoneRulesProvider : TimeZoneRulesProvider
The default time zone rules provider implementation for the current platform.
darwin
actual object PlatformTimeZoneRulesProvider : TimeZoneRulesProvider
A time zone rules provider that draws from the database included on Darwin platforms.
jvm
actual object PlatformTimeZoneRulesProvider : TimeZoneRulesProvider
A time zone rules provider that draws from the database built into the java.time library.
Properties¶
Name | Summary |
---|---|
availableRegionIds | darwin jvm common darwin open override val availableRegionIds: Set<String> jvm open override val availableRegionIds: Set<String> common abstract val availableRegionIds: Set<String> The available time zone region IDs as reported by the underlying provider. |
databaseVersion | darwin jvm common darwin open override val databaseVersion: String jvm open override val databaseVersion: String common open val databaseVersion: String The time zone database version or an empty string if unavailable. |
Functions¶
Name | Summary |
---|---|
hasRulesFor | darwin open override fun hasRulesFor(regionId: String): Boolean Checks if regionId has rules associated with it. jvm open override fun hasRulesFor(regionId: String): Boolean Checks if regionId has rules associated with it. common abstract fun hasRulesFor(regionId: String): Boolean Checks if regionId has rules associated with it. |
rulesFor | darwin jvm common darwin open override fun rulesFor(regionId: String): TimeZoneRules jvm open override fun rulesFor(regionId: String): TimeZoneRules common abstract fun rulesFor(regionId: String): TimeZoneRules Gets the rules associated with a particular region ID. |