mirror of
https://github.com/correl/elm.git
synced 2024-11-25 19:19:54 +00:00
14 lines
196 B
Elm
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
|