elm/exercises/gigasecond/Gigasecond.example
2016-08-28 22:01:33 -06:00

14 lines
196 B
Text

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