Sometimes an API returns a List of Int's and you have to deal with it. This
package helps with the conversion from and to elm's native Time
.
elm install brianvanburken/elm-list-date
See docs.
listToDate Time.utc [ 2018, 5, 31, 15, 16, 20, 987 ] -- Ok (Posix 1527779780987)
dateToList Time.utc (Posix 1527779780987) -- [ 2018, 5, 31, 15, 16, 20, 987 ]