Commit 2ee538bc authored by Russ Cox's avatar Russ Cox

time: mention receiver in Unix, UnixNano docs

Fixes #3248.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5784052
parent 2b64e00f
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment