class FixedOffset : TimeZone
A time zone defined by a fixed offset from UTC.
In general, region-based time zones are preferred, but there are situations where only a fixed offset may be available.
DateTimeException - if offset is outside the valid range
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
id |
An ID that uniquely identifies the time zone. val id: String |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
isValid |
Checks 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)
offset |
a valid UTC offset val offset: UtcOffset |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
rules |
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 |
Returns a normalized time zone, converting any zone with a fixed offset to use a consistent identifier. fun normalized(): FixedOffset |
(jvm)
displayName |
A textual representation of this 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 this 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? |