Massolari/time-distance/1.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/Massolari/time-distance is gone (deleted or private); Software Heritage has not archived the repo; no fork with tag 1.0.0 found (16 same-name repos checked); no cached copy. Use another version.

Details

Time.Distance

Library for getting the relative distance between two Time.Posix values, in words.

Time.Distance

inWords : Posix -> Posix -> String

Get the string representing the time interval, defaulting to English, with affixes ("ago"/"in").

The second argument is for the "now" time.

inWordsWithConfig : Config -> Locale -> Posix -> Posix -> String

Get the string representing the time interval, with another language, and/ or without affixes ("ago"/"in").

Config is a type alias for { withAffix : Bool}.