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

API Browser

Method

GetUtcOffset

func GetUtcOffset(instant: Instant) -> Result<TimeOffset, TimeZoneError>

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

Gets the actual offset at an instant.

Parameters

Name Type Description
instant Instant Unix tick timestamp.

Return value

Result<TimeOffset, TimeZoneError>

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