commonMain.TimeZone.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluid-time-macosx64 Show documentation
Show all versions of fluid-time-macosx64 Show documentation
Kotlin multiplatform date & time library
package io.fluidsonic.time
import kotlinx.datetime.*
// TimeZone.Companion.of() should rename parameter 'zoneId' to 'id' as the 'zone' is redundant.
public fun TimeZone.Companion.ofOrNull(id: String): TimeZone? =
runCatching { of(id) }.getOrNull()