Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Find

static func Find(id: string) -> Result<TimeZone, TimeZoneError>

Declaring type: TimeZone
Module: System.Time
Assembly: System.Runtime.dll
Source file: TimeZone.rvn

Looks up a bundled IANA zone or alias.

Parameters

Name Type Description
id String Case-sensitive IANA identifier, for example Europe/Stockholm.

Return value

Result<TimeZone, TimeZoneError>

Ok(TimeZone), or UnknownZone; there is no UTC fallback.