From: Russ Cox Date: Thu, 8 Mar 2012 13:32:52 +0000 (-0500) Subject: time: mention receiver in Unix, UnixNano docs X-Git-Tag: weekly.2012-03-13~90 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2ee538bc27602bf4d18e35238a2649961924d3eb;p=gostls13.git time: mention receiver in Unix, UnixNano docs Fixes #3248. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5784052 --- diff --git a/src/pkg/time/time.go b/src/pkg/time/time.go index ee87838949..473bc2a451 100644 --- a/src/pkg/time/time.go +++ b/src/pkg/time/time.go @@ -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)