brianvanburken/elm-list-date - version: 3.0.1

for more information visit the package's GitHub page

Package contains the following modules:

elm-list-date

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.

Installation

elm install brianvanburken/elm-list-date

Usage

See docs.

Decoding

listToDate Time.utc [ 2018, 5, 31, 15, 16, 20, 987 ] -- Ok (Posix 1527779780987)

Encoding

dateToList Time.utc (Posix 1527779780987) -- [ 2018, 5, 31, 15, 16, 20, 987 ]