elm/exercises/gigasecond/Gigasecond.example.elm

15 lines
196 B
Elm
Raw Normal View History

2016-08-26 03:31:54 +00:00
module Gigasecond exposing (add)
import Date
import Time
add : Date.Date -> Date.Date
add =
Date.toTime >> (+) gigasecond >> Date.fromTime
2016-08-26 03:31:54 +00:00
gigasecond : Time.Time
gigasecond =
10 ^ 12