Exercism: Go version of the 'Gigasecond' exercise.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
196 B

package gigasecond
import "time"
const testVersion = 4
// AddGigasecond adds 1 billion seconds to the initial time
func AddGigasecond(t time.Time) time.Time {
return t.Add(1e9 * time.Second)
}