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

API Browser

Member group

Parse

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

Overloads / Variants

Parse

static func Parse(value: string, culture: Culture) -> Result<LocalDateTime, DateTimeParseError>

Source file: LocalDateTime.rvn

Parses a supported numeric Gregorian value with an explicit culture.

Parameters

Name Type Description
value String The complete culture-specific numeric representation.
culture Culture Invariant, SwedishSweden or HebrewIsrael conventions; no ambient culture is read.

Return value

Result<LocalDateTime, DateTimeParseError>

A value or InvalidFormat/OutOfRange; no partial parse or rounding occurs.

Parse

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

Source file: LocalDateTime.rvn

Parses a supported numeric civil value using Culture.Current.

Parameters

Name Type Description
value String The complete text; whitespace, offsets and zone names are not accepted.

Return value

Result<LocalDateTime, DateTimeParseError>

A value or InvalidFormat/OutOfRange. Use the explicit culture overload for deterministic input.