Module

JS.Temporal.Disambiguation

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

How to disambiguate when a local date/time occurs twice or not at all (e.g. during daylight saving transitions). Used when converting between PlainDateTime and ZonedDateTime. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/from

#Disambiguation Source

data Disambiguation

Strategy for resolving ambiguous wall-clock times.

Constructors

Instances

#toString Source

toString :: Disambiguation -> String

Converts a Disambiguation to its JavaScript string value.

#fromString Source

fromString :: String -> Maybe Disambiguation

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