mgold/elm-date-format/1.5.0

NOTE: this package is not compatible with Elm 0.19.1

Date.Local

A record type to store localized time formatting information.

A default set of localizations.

french : Local

French set of localizations.

brazilian : Local

Brazilian set of localizations.

type alias Local =
{ date :
{ months : Months
, monthsAbbrev : Months
, wdays : WeekDays
, wdaysAbbrev : WeekDays
, defaultFormat : Maybe String
}
, time :
{ am : String
, pm : String
, defaultFormat : Maybe String
}
, timeZones : Maybe TimeZones
, defaultFormat : Maybe String
}

A collection of strings and formats for localizing formats.

Time zones and default formats are not implemented, but included to avoid possible version conflicts in the future.

type alias Months =
{ jan : String
, feb : String
, mar : String
, apr : String
, may : String
, jun : String
, jul : String
, aug : String
, sep : String
, oct : String
, nov : String
, dec : String
}

A record of names for the months of the year.

type alias WeekDays =
{ mon : String
, tue : String
, wed : String
, thu : String
, fri : String
, sat : String
, sun : String
}

A record of names for the days of the week.

type alias TimeZones =
Dict String String

Maps from %z type string (+hhmm or -hhmm) to timezone name or abbreviation.

Not currently implemented.