use term "convert", not "parse".

This commit is contained in:
Thomas Güttler 2024-02-28 14:19:22 +01:00 committed by GitHub
parent a4d93ab049
commit 0cbf5b7f9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1237,7 +1237,7 @@ func (t Time) UnixMicro() int64 {
// in nanoseconds cannot be represented by an int64 (a date before the year
// 1678 or after 2262). Note that this means the result of calling UnixNano
// on the zero Time is undefined. The result does not depend on the
// location associated with t. Use time.Unix(0, ns) to parse the integer
// location associated with t. Use time.Unix(0, ns) to convert the integer
// back to a Time struct.
func (t Time) UnixNano() int64 {
return (t.unixSec())*1e9 + int64(t.nsec())