blob: f13ba87869b7bb62f865ab0a623e717ab2382377 [file] [log] [blame]
// +build OMIT
package main
import (
"fmt"
"time"
)
func main() {
// START OMIT
birthday, _ := time.Parse("Jan 2 2006", "Nov 10 2009") // time.Time
age := time.Since(birthday) // time.Duration
fmt.Printf("Go is %d days old\n", age/(time.Hour*24))
// END OMIT
}