Development documentation · Some APIs may be unreleased Published release →

Guides

Local time mapping payloads

RavenDoc renders named union cases inline but does not emit their payload-property pages. Use case patterns to extract these values. This reference supplies those members until renderer support is available.

Unique.Value

Property value: ZonedDateTime. The sole instant with the requested local civil fields.

Ambiguous.Earlier

Property value: ZonedDateTime. The chronologically earlier instant, with its actual offset and named zone.

Ambiguous.Later

Property value: ZonedDateTime. The chronologically later instant, with the same local fields and its own actual offset.

Skipped has no payload. Default LocalTimeMapping is inactive. Successful MapLocal returns an active case. See DateTime and zones for the executed example.

Unique.Deconstruct

func Deconstruct(out value: ZonedDateTime) -> () writes the unique resolved value. The receiver is an extracted LocalTimeMapping.Unique case. Prefer the ordinary Unique(value) case pattern when matching a mapping.

Ambiguous.Deconstruct

func Deconstruct(out earlier: ZonedDateTime, out later: ZonedDateTime) -> () writes both resolved values in chronological order. The receiver is an extracted LocalTimeMapping.Ambiguous case. The Ambiguous(earlier, later) case pattern uses the same payload order. These generated case members are omitted by RavenDoc's inline-case rendering and are documented here explicitly.