offset

actual val offset: UtcOffset(source)
expect val offset: UtcOffset(source)

The constant offset from UTC that this time zone has.

Samples

import kotlinx.datetime.*
import kotlinx.datetime.format.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   // Obtaining the offset of a fixed-offset time zone
val zone = TimeZone.of("UTC+01:30") as FixedOffsetTimeZone
check(zone.id == "UTC+01:30")
check(zone.offset == UtcOffset(hours = 1, minutes = 30)) 
   //sampleEnd
}
actual val offset: UtcOffset(source)
actual val offset: UtcOffset(source)