1
0
mirror of https://github.com/golang/go synced 2024-11-26 04:37:59 -07:00
This commit is contained in:
helloPiers 2021-07-19 15:12:22 +01:00
parent 49402bee36
commit 75962b0294

View File

@ -1334,7 +1334,7 @@ func UnixMilli(msec int64) Time {
} }
// UnixMicro returns the local Time corresponding to the given Unix 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 { func UnixMicro(usec int64) Time {
return Unix(usec/1e6, (usec%1e6)*1e3) return Unix(usec/1e6, (usec%1e6)*1e3)
} }