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

API Browser

Method

ToInstant

func ToInstant(local: LocalDateTime) -> Instant

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

Converts civil fields using this fixed offset.

Parameters

Name Type Description
local LocalDateTime Valid Date and Time fields.

Return value

Instant

The unique Instant; all supported civil inputs fit its range.