unity之lua计算某一时间段开始和结束时间戳

1.计算某一有效时间的开始时间戳和结束时间戳

starttime,endtime:某个活动的开始时间,结束时间
opentime :开服时间或者创角时间

--获取剩余时间:某时间戳距离当天23:59:59秒的时间差
local function GetReaminSecondsTo24(time)
    local toYear=os.date("*t",time).year
    local toMonth=os

猜你喜欢

转载自blog.csdn.net/shirln/article/details/123232047