{ era : Maybe TextOption
, year : Maybe NumberOption
, month : Maybe NumberOrTextOption
, day : Maybe NumberOption
, weekday : Maybe TextOption
, period : Maybe TextOption
, dayPeriod : Maybe TextOption
, hour : Maybe NumberOption
, minute : Maybe NumberOption
, second : Maybe NumberOption
, fractionalSecondDigits : Maybe FractionalDigits
, zone : Maybe NameOption
, hour12 : Maybe HourType
}
The options that are relevant to formatting a DateTime value.
These match the options that can be used in the
Intl.DateTimeFormat
JS API.
defaultDateTimeOptions : DateTimeOptions
A default record that can be used. Defaults each option to Nothing.
import Cldr.Format.Options exposing (defaultDateTimeOptions)
options =
{ defaultDateTimeOptions | hour = Just Numeric }
{ era : Maybe TextOption
, year : Maybe NumberOption
, month : Maybe NumberOrTextOption
, day : Maybe NumberOption
, weekday : Maybe TextOption
}
The options that are relevant to formatting a Date value.
These match a subset of the options that can be used in the
Intl.DateTimeFormat
JS API.
defaultDateOptions : DateOptions
A default record that can be used. Defaults each option to Nothing.
import Cldr.Format.Options exposing (defaultDateOptions)
options =
{ defaultDateOptionis | year = Just Numeric }
A value for text-based options, such as weekday name and am/pm period.
A value for number-based options, such as year or hour.
A value for options that can use text or numbers, such as month.
A value to choose between 12 and 24 hour based formatting.
A value to choose the number of fractional digits to display.
Time Zone names can only be "short" or "long".