1
0
Fork 0
mirror of https://github.com/correl/elm.git synced 2025-01-11 11:05:26 +00:00
elm/exercises/gigasecond/Gigasecond.example.elm
2016-12-17 17:29:40 -05:00

14 lines
196 B
Elm

module Gigasecond exposing (add)
import Date
import Time
add : Date.Date -> Date.Date
add =
Date.toTime >> (+) gigasecond >> Date.fromTime
gigasecond : Time.Time
gigasecond =
10 ^ 12