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

API Browser

Method

FromSeconds

static func FromSeconds(seconds: int) -> Result<TimeOffset, InvalidTimeError>

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

Validates a fixed UTC displacement.

Parameters

Name Type Description
seconds Int32 Whole seconds from -64800 through 64800 inclusive.

Return value

Result<TimeOffset, InvalidTimeError>

Ok(TimeOffset), or InvalidTimeError outside the range.