parent
d9692a76a0
commit
705c8b99ec
|
|
@ -1815,7 +1815,7 @@ function CalculateSecondsNowTo_N_OClock(n)
|
|||
--- 标准时间戳从1970年1月1日8点开始,加上八个小时的秒数,使其从0点开始
|
||||
--- 8*60*60 = 28800
|
||||
--- 24*60*60 = 86400
|
||||
local todayPassSeconds = (curTimeStemp + 28800) % 86400
|
||||
local todayPassSeconds = (curTimeStemp + 25200) % 86400
|
||||
local targetSeconds = n * 3600 --- 60*60 = 3600
|
||||
if todayPassSeconds <= targetSeconds then
|
||||
return targetSeconds - todayPassSeconds
|
||||
|
|
|
|||
Loading…
Reference in New Issue