1
0
gotour-notes/duration-test/go.go

15 lines
197 B
Go
Raw Permalink Normal View History

2012-09-03 07:49:11 -07:00
package main
import (
"fmt"
"time"
)
func main() {
var t time.Duration
t = time.Millisecond
fmt.Printf("%T %v\n", t, t)
t = 3723 * time.Second
fmt.Printf("%T %v\n", t, t)
}