mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-03 16:45:59 +08:00
msg test
This commit is contained in:
@@ -30,6 +30,11 @@ func UnixSecondToTime(second int64) time.Time {
|
||||
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))
|
||||
}
|
||||
|
||||
//Get the current timestamp by Nano
|
||||
func GetCurrentTimestampByNano() int64 {
|
||||
|
||||
Reference in New Issue
Block a user