Module

JS.Temporal.CalendarName

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

Options for including calendar identification in toString output. Controls whether the calendar component is included when serializing date/time values. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/toString

#CalendarName Source

data CalendarName

When to include the calendar ID in serialized output.

Constructors

Instances

#toString Source

toString :: CalendarName -> String

Converts a CalendarName to its JavaScript string value.

#fromString Source

fromString :: String -> Maybe CalendarName

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