core / io.islandtime / TimeZone / FixedOffset

FixedOffset

(iosArm64, iosX64, jvm, macosX64) 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.

Parameters

offset - a valid UTC offset

Exceptions

DateTimeException - if offset is outside the valid range

Properties

(iosArm64, iosX64, jvm, macosX64)

id

An ID that uniquely identifies the time zone.

val id: String
(iosArm64, iosX64, jvm, macosX64)

isValid

Check if this is a valid time zone according to the current time zone rules provider.

val isValid: Boolean
(iosArm64, iosX64, jvm, macosX64)

offset

a valid UTC offset

val offset: UtcOffset
(iosArm64, iosX64, jvm, macosX64)

rules

Get the rules associated with this time zone.

val rules: TimeZoneRules

Functions

(iosArm64, iosX64, jvm, macosX64)

equals

fun equals(other: Any?): Boolean
(iosArm64, iosX64, jvm, macosX64)

hashCode

fun hashCode(): Int
(iosArm64, iosX64, jvm, macosX64)

normalized

Get a normalized time zone.

fun normalized(): FixedOffset