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

API Browser

Method

Parse

static func Parse(value: string) -> Result<Instant, DateTimeParseError>

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

Parses invariant yyyy-MM-ddTHH:mm:ss[.fraction] followed by Z or ±HH:mm[:ss].

Parameters

Name Type Description
value String Complete ASCII text with an explicit offset; fractions have 1–7 digits.

Return value

Result<Instant, DateTimeParseError>

The instant, or InvalidFormat/OutOfRange for unsupported syntax or invalid fields.

Remarks

Local years are 1–9999. Existing ±18-hour, whole-second offsets apply. UTC can cross those civil boundaries within Instant's wider signed tick domain. No ambient culture, host zone, whitespace, leap seconds or named zones are accepted.