Module

JS.Temporal.OffsetDisambiguation

Package
purescript-js-temporal
Repository
pete-murphy/purescript-js-temporal

How to handle a time zone offset when it conflicts with the provided offset (e.g. when parsing or constructing ZonedDateTime). Used in from options for ZonedDateTime. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/from

#OffsetDisambiguation Source

data OffsetDisambiguation

Strategy for resolving offset mismatches.

Constructors

Instances

#toString Source

toString :: OffsetDisambiguation -> String

Converts an OffsetDisambiguation to its JavaScript string value.

#fromString Source

fromString :: String -> Maybe OffsetDisambiguation

Parses a JavaScript offsetDisambiguation string. Returns Nothing for unknown values.