Files
exercism/go/gigasecond/gigasecond.go
T
2019-03-03 02:36:28 +00:00

11 lines
299 B
Go

// Package gigasecond provides functions that modify time by gigasecond values.
package gigasecond
import "time"
// AddGigasecond returns a time that is one gigasecond into the future from the
// input time, t.
func AddGigasecond(t time.Time) time.Time {
return t.Add(1000000000 * time.Second)
}