Sign in
go
/
talks
/
f5626d9c2abbe9cd1d539fc2bc2456059b364f94
/
.
/
2012
/
simple
/
time2.go
blob: 485e9da4064135f5738d8c8553d321a80eeb5ea1 [
file
] [
log
] [
blame
]
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
}