修复Microsecond()获取微秒数错误的bug

This commit is contained in:
open-atom 2021-07-16 02:40:48 +00:00 committed by Gitee
parent 165ed4366b
commit 487d1753c8

View File

@ -181,7 +181,7 @@ func (c Carbon) Microsecond() int {
if c.IsZero() { if c.IsZero() {
return 0 return 0
} }
return c.Time.In(c.Loc).Nanosecond() / 1e9 return c.Time.In(c.Loc).Nanosecond() / 1e3
} }
// Nanosecond 获取当前纳秒数 // Nanosecond 获取当前纳秒数