From 59c70d19e48422f70bb9bb06a46a405d3b0bc162 Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Mon, 3 Sep 2012 08:49:11 -0600 Subject: [PATCH] added a simple time.Duration test --- duration-test/go.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 duration-test/go.go diff --git a/duration-test/go.go b/duration-test/go.go new file mode 100644 index 0000000..92e5cc1 --- /dev/null +++ b/duration-test/go.go @@ -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) +}