lua 时间戳获取当日0点

function getTodayTimeStamp()
{
  local cDateCurrectTime = os.date("*t")

  local cDateTodayTime = os.time({year=cDateCurrectTime.year, month=cDateCurrectTime.month, day=cDateCurrectTime.day, hour=0,min=0,sec=0})

  return cDateTodayTime

}


lua时间戳已知是秒为基准的

猜你喜欢

转载自blog.csdn.net/qq_28098067/article/details/79802453