danhandrea/elm-time-extra/1.0.0

NOTE: the latest version is 1.1.0

TimeExtra

TimeExtra

Extra functionality for Posix

All computations use Time.utc

Creation

epoch : Posix

epoch

fromY : Year -> Posix

fromY

Will create a Posix date with day 1 and month 1

fromYM : Year -> Month -> Posix

fromYM

Will create a Posix date with day 1

fromYMD : Year -> Month -> Day -> Posix

fromYMD

Will crate a Posix date

fromYMDH : Year -> Month -> Day -> Hour -> Posix

fromYMDH

Will create a Posix date

fromYMDHM : Year -> Month -> Day -> Hour -> Minute -> Posix

fromYMDHM

Will create a Posix date

fromYMDHMS : Year -> Month -> Day -> Hour -> Minute -> Second -> Posix

fromYMDHMS

Will create a Posix date

fromYMDHMSM : Year -> Month -> Day -> Hour -> Minute -> Second -> Millis -> Posix

fromYMDHMSM

Will create a Posix date

Query

isLeapYear : Int -> Bool

isLeapYear