FixedOffsetTimeZone

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

Constructs a time zone with the fixed offset from UTC.

Samples

import kotlinx.datetime.*
import kotlinx.datetime.format.*
import kotlin.test.*
fun main() { 
   //sampleStart 
   // Constructing a fixed-offset time zone using an offset
val offset = UtcOffset(hours = 1, minutes = 30)
val zone = FixedOffsetTimeZone(offset)
check(zone.id == "+01:30")
check(zone.offset == offset) 
   //sampleEnd
}
actual constructor(offset: UtcOffset)(source)
actual constructor(offset: UtcOffset)(source)