mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
msg test
This commit is contained in:
parent
5a9f3f1f5e
commit
8e10533681
@ -31,9 +31,7 @@ func UnixNanoSecondToTime(nanoSecond int64) time.Time {
|
||||
return time.Unix(0, nanoSecond)
|
||||
}
|
||||
func UnixMillSecondToTime(millSecond int64) time.Time {
|
||||
sec := millSecond / 1000
|
||||
msec := millSecond % 1000
|
||||
return time.Unix(sec, msec*int64(time.Millisecond))
|
||||
return time.Unix(0, millSecond*1e6)
|
||||
}
|
||||
|
||||
//Get the current timestamp by Nano
|
||||
|
Loading…
x
Reference in New Issue
Block a user