jluckyiv/elm-utc-date-strings/1.0.0

Utc

Convert between UTC date strings and POSIX times.

fromTime : Posix -> String

Inflate a Posix integer into a more memory-intensive UTC date string.

It's generally best to avoid doing this unless an external API requires it.

(UTC integers are less error-prone, take up less memory, and are more efficient for time arithmetic.)

Format: Www, dd Mmm yyyy hh:mm:ss GMT

toTime : String -> Result (List DeadEnd) Posix

Convert from a UTC date string to a Time.Posix value.

UTC date strings are always GMT. This function returns a time in UTC/GMT.

decoder : Decoder Posix

Decode a UTC date string to a Time.Posix value using toTime.

encode : Posix -> Value

Encode a Time.Posix value as a UTC date string using fromTime.