mirror of
https://github.com/golang/go
synced 2024-11-22 15:54:52 -07:00
time: correct typo in documentation for UnixMicro
Fixes #47283.
Change-Id: Ibdc35433d22be3caa70197b6a95c66999812a16a
GitHub-Last-Rev: 75962b0294
GitHub-Pull-Request: golang/go#47284
Reviewed-on: https://go-review.googlesource.com/c/go/+/335549
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
404127c30f
commit
1d91551b73
@ -1334,7 +1334,7 @@ func UnixMilli(msec int64) Time {
|
||||
}
|
||||
|
||||
// UnixMicro returns the local Time corresponding to the given Unix time,
|
||||
// usec milliseconds since January 1, 1970 UTC.
|
||||
// usec microseconds since January 1, 1970 UTC.
|
||||
func UnixMicro(usec int64) Time {
|
||||
return Unix(usec/1e6, (usec%1e6)*1e3)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user