This commit is contained in:
aozhiwei 2024-07-22 13:47:12 +08:00
parent b9c7e05031
commit db5e615704

View File

@ -19,6 +19,10 @@ func GetDaySeconds(seconds int64, timeZone int64) int64 {
return ((seconds+timeZone*3600)/3600/24)*3600*24 - 3600*timeZone
}
func GetYesterDaySeconds(seconds int64, timeZone int64) int64 {
return ((seconds+timeZone*3600)/3600/24)*3600*24 - 3600*timeZone
}
func GetTickCount() int64 {
return time.Now().UnixNano() / 1e6
}