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.

Types

Companion
Link copied to clipboard
common
object Companion : TimeZoneRulesProvider

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
hasRulesFor
Link copied to clipboard
common
abstract fun hasRulesFor(regionId: String): Boolean
Checks if regionId has rules associated with it.
rulesFor
Link copied to clipboard
common
abstract fun rulesFor(regionId: String): TimeZoneRules
Gets the rules associated with a particular region ID.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

availableRegionIds
Link copied to clipboard
common
abstract val availableRegionIds: Set<String>
The available time zone region IDs as reported by the underlying provider.
databaseVersion
Link copied to clipboard
common
open val databaseVersion: String
The time zone database version or an empty string if unavailable.

Inheritors

TimeZoneRulesProvider
Link copied to clipboard
PlatformTimeZoneRulesProvider
Link copied to clipboard