gigasecond

package
v0.0.0-...-1c03fbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2016 License: MIT Imports: 1 Imported by: 0

README

Gigasecond

Write a program that will calculate the date that someone turned or will celebrate their 1 Gs anniversary.

A gigasecond is one billion (10**9) seconds.

To run the tests simply run the command go test in the exercise directory.

If the test suite contains benchmarks, you can run these with the -bench flag:

go test -bench .

For more detailed info about the Go track see the help page.

Source

Chapter 9 in Chris Pine's online Learn to Program tutorial. view source

Documentation

Overview

Package gigasecond implements a simple library to calculate the 1 Gs anniversary. A gigasecond is one billion (10**9) seconds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGigasecond

func AddGigasecond(date time.Time) time.Time

AddGigasecond returns the time.Time + 1e9 seconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL