1
0

added a simple time.Duration test

This commit is contained in:
Stephen M. McQuay 2012-09-03 08:49:11 -06:00
parent 80fd57a3bc
commit 59c70d19e4

14
duration-test/go.go Normal file
View File

@ -0,0 +1,14 @@
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)
}