This commit is contained in:
aozhiwei 2020-10-26 16:21:53 +08:00
parent 00b7f9e2ea
commit 0067fe79b2
2 changed files with 13 additions and 1 deletions

4
init.go Normal file
View File

@ -0,0 +1,4 @@
package q5
func init() {
}

View File

@ -8,10 +8,18 @@ import (
"reflect"
)
func GetDaySeconds(seconds int64) int64 {
func GetTimeZone() int64 {
return 0
}
func GetDaySeconds(seconds int64) int64 {
return GetDaySecondsEx(seconds, GetTimeZone())
}
func GetDaySecondsEx(seconds int64, timeZone int64) int64 {
return ((seconds + timeZone * 3600)/3600/24 + 1) * 3600 * 24 - 3600 * timeZone;
}
func GetTickCount() int64 {
return time.Now().UnixNano() / 1e6
}