PlatformTimeZoneRulesProvider

object PlatformTimeZoneRulesProvider : TimeZoneRulesProvider

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

object PlatformTimeZoneRulesProvider : TimeZoneRulesProvider

A time zone rules provider that draws from the database included on Darwin platforms.

object PlatformTimeZoneRulesProvider : TimeZoneRulesProvider

A time zone rules provider that draws from the database built into the java.time library.

Functions

hasRulesFor
Link copied to clipboard
darwin
open override fun hasRulesFor(regionId: String): Boolean

Checks if regionId has rules associated with it.

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
Link copied to clipboard
open override fun rulesFor(regionId: String): TimeZoneRules
open override fun rulesFor(regionId: String): TimeZoneRules
abstract fun rulesFor(regionId: String): TimeZoneRules

Gets the rules associated with a particular region ID.

Properties

availableRegionIds
Link copied to clipboard
common
abstract val availableRegionIds: Set<String>

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

availableRegionIds
Link copied to clipboard
darwin
open override val availableRegionIds: Set<String>

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

availableRegionIds
Link copied to clipboard
open override 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.

databaseVersion
Link copied to clipboard
darwin
open override val databaseVersion: String

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

databaseVersion
Link copied to clipboard
open override val databaseVersion: String

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