From 2ee538bc27602bf4d18e35238a2649961924d3eb Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 8 Mar 2012 08:32:52 -0500 Subject: [PATCH] time: mention receiver in Unix, UnixNano docs Fixes #3248. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5784052 --- src/pkg/time/time.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)