Skip to content

brianvanburken/elm-list-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ]

About

Functions to deal with dates represented as a List of Int's

Topics

Resources

License

Stars

Watchers

Forks

Languages