Skip to content

//core/io.islandtime.zone/TimeZoneRulesProvider

TimeZoneRulesProvider

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.

Inheritors

Companion
PlatformTimeZoneRulesProvider

Types

Name Summary
Companion

common


object Companion : TimeZoneRulesProvider

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.

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.