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

API Browser

Method

AtInstant

func AtInstant(instant: Instant) -> Result<ZonedDateTime, TimeZoneError>

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

Resolves an instant in this named zone.

Parameters

Name Type Description
instant Instant Unix tick timestamp.

Return value

Result<ZonedDateTime, TimeZoneError>

Ok(ZonedDateTime), or OutOfRange outside the supported UTC/local years.