1
This commit is contained in:
parent
00b7f9e2ea
commit
0067fe79b2
10
sysutils.go
10
sysutils.go
@ -8,10 +8,18 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetDaySeconds(seconds int64) int64 {
|
func GetTimeZone() int64 {
|
||||||
return 0
|
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 {
|
func GetTickCount() int64 {
|
||||||
return time.Now().UnixNano() / 1e6
|
return time.Now().UnixNano() / 1e6
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user