]> Cypherpunks repositories - gostls13.git/commitdiff
time: mention receiver in Unix, UnixNano docs
authorRuss Cox <rsc@golang.org>
Thu, 8 Mar 2012 13:32:52 +0000 (08:32 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 8 Mar 2012 13:32:52 +0000 (08:32 -0500)
Fixes #3248.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5784052

src/pkg/time/time.go

index ee8783894915802e77786e9c10061029ab802c8b..473bc2a451625c11261ff0c42b41adb90270cbc5 100644 (file)
@@ -756,13 +756,13 @@ func (t Time) Zone() (name string, offset int) {
        return
 }
 
-// Unix returns the Unix time, the number of seconds elapsed
+// Unix returns t as a Unix time, the number of seconds elapsed
 // since January 1, 1970 UTC.
 func (t Time) Unix() int64 {
        return t.sec + internalToUnix
 }
 
-// UnixNano returns the Unix time, the number of nanoseconds elapsed
+// UnixNano returns t as a Unix time, the number of nanoseconds elapsed
 // since January 1, 1970 UTC.
 func (t Time) UnixNano() int64 {
        return (t.sec+internalToUnix)*1e9 + int64(t.nsec)