--[[
@desc: 给一个时间戳,返回当天0点的时间戳
author:{author}
time:2024-01-15 22:14:14
--@time:
@return: 当天0点时间戳
]]
function cc.exports.util_GetStartTimeOfDay(time)
local tab = os.date("*t", time)
tab.hour = 0
tab.min = 0
tab.sec = 0
local result = os.time(tab)
if not result then
result = 0
end
return result
end