class Region : TimeZone
A named time zone, typically corresponding to a region identifier in the IANA Time Zone Database, but may be any name that can be understood by a TimeZoneRulesProvider.
id - an ID that is understood by a time zone rules provider
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
id |
an ID that is understood by a time zone rules provider val id: String |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
isValid |
Check if this is a valid time zone according to the current time zone rules provider. val isValid: Boolean |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
rules |
Get the rules associated with this time zone. val rules: TimeZoneRules |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
equals |
fun equals(other: Any?): Boolean |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
hashCode |
fun hashCode(): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
normalized |
Get a normalized time zone. fun normalized(): TimeZone |
(jvm)
displayName |
A textual representation of the time zone, suitable for display purposes. The localized name will be returned, if available for the locale in the specified style. If not, the id will be returned instead. fun displayName(style: TimeZoneTextStyle, locale: Locale = defaultLocale()): String |
(jvm)
localizedName |
The localized name of the time zone, if available for the locale in the specified style. The result depends on the configured TimeZoneTextProvider and may differ between platforms. fun localizedName(style: TimeZoneTextStyle, locale: Locale = defaultLocale()): String? |