//core/io.islandtime.zone/TimeZoneRulesProvider
TimeZoneRulesProvider¶
common
interface TimeZoneRulesProvider
An abstraction that allows time zone rules to be supplied from any data source.
The set of supported identifiers is expected to vary depending on the source, but should typically represent regions defined in the IANA Time Zone Database.
Types¶
Name | Summary |
---|---|
Companion | common object Companion : TimeZoneRulesProvider |
Functions¶
Name | Summary |
---|---|
hasRulesFor | common abstract fun hasRulesFor(regionId: String): Boolean Checks if regionId has rules associated with it. |
rulesFor | common abstract fun rulesFor(regionId: String): TimeZoneRules Gets the rules associated with a particular region ID. |
Properties¶
Name | Summary |
---|---|
availableRegionIds | common abstract val availableRegionIds: Set<String> The available time zone region IDs as reported by the underlying provider. |
databaseVersion | common open val databaseVersion: String The time zone database version or an empty string if unavailable. |
Inheritors¶
Name |
---|
TimeZoneRulesProvider |
PlatformTimeZoneRulesProvider |