Method
Create
static func Create(instant: Instant, zone: TimeZone) -> Result<ZonedDateTime, TimeZoneError>
Declaring type: ZonedDateTime
Module: System.Time
Assembly: System.Runtime.dll
Source file: ZonedDateTime.rvn
Validates and resolves an instant in a named zone.
Parameters
| Name | Type | Description |
|---|---|---|
instant |
Instant | Unix tick timestamp. |
zone |
TimeZone | Explicit named rules. |
Return value
Result<ZonedDateTime, TimeZoneError>
Ok(ZonedDateTime), or OutOfRange outside supported years.