core / io.islandtime.zone / PlatformTimeZoneRulesProvider

PlatformTimeZoneRulesProvider

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) object PlatformTimeZoneRulesProvider : TimeZoneRulesProvider

The default time zone rules provider implementation for the current platform.

Properties

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

availableRegionIds

The available time zone region IDs as reported by the underlying provider.

val availableRegionIds: Set<String>
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

databaseVersion

The time zone database version or an empty string if unavailable.

val databaseVersion: String

Functions

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

hasRulesFor

Check if regionId has rules associated with it.

fun hasRulesFor(regionId: String): Boolean
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

rulesFor

Get the rules associated with a particular region ID.

fun rulesFor(regionId: String): TimeZoneRules