ryannhg/date-format/2.3.0

Renamed to ryan-haskell/date-format. It is published under that name, and new versions come out there.

Versions published as ryannhg/date-format still install under that name. 6 versions of 6 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/ryan-haskell/date-format.

What we checked: The repo moved to github.com/ryan-haskell/date-format. Rebuilt with git archive from commit f2f962210cfb of https://github.com/ryan-haskell/date-format (zip prefix ryannhg-date-format-b0e7928/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 70c67866fed499bec685f43f23fea279556757f2.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/ryannhg/date-format/zipball/2.3.0/

DateFormat.Language

Fun fact: Some people don't know english.

That's why it's important to include alternative date formatting options for other languages!

This module exposes Language, along with a few implementations.

(If you want to see french, german, or greek, please add them in! I'm happy to make your language a part of the package!)

Language

type alias Language =
{ toMonthName : Month -> String
, toMonthAbbreviation : Month -> String
, toWeekdayName : Weekday -> String
, toWeekdayAbbreviation : Weekday -> String
, toAmPm : Int -> String
, toOrdinalSuffix : Int -> String
}

A record with options for your language.

Languages

english : Language

The english language! (used by default)

spanish : Language

The spanish language!

dutch : Language

The dutch language!

swedish : Language

The Swedish language!

portuguese : Language

The Portuguese language!