Convert between UTC date strings and POSIX times.
fromTime : Time.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 Parser.DeadEnd) Time.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 : Json.Decode.Decoder Time.Posix
Decode a UTC date string to a Time.Posix
value using toTime
.
encode : Time.Posix -> Json.Encode.Value
Encode a Time.Posix
value as a UTC date string using
fromTime
.