availableZoneIds

Queries the set of identifiers of time zones available in the system.

Samples

import kotlinx.datetime.*
import kotlinx.datetime.format.*
import kotlin.test.*
fun main() { 
   //sampleStart 
   // Constructing every available time zone
for (zoneId in TimeZone.availableZoneIds) {
    val zone = TimeZone.of(zoneId)
    // for fixed-offset time zones, normalization can happen, e.g. "UTC+01" -> "UTC+01:00"
    check(zone.id == zoneId || zone is FixedOffsetTimeZone)
} 
   //sampleEnd
}