lua时间函数
print(os.time())
print(os.time({year=1970,month=1,day=1,hour=8,min=0,sec=0})) --0
print(os.date("%Y-%m-%d %H:%M:%S",os.time())) -- 2019-06-08 17:56:54
dump(os.date("*t"),"格式化") --返回一个table

image.png


首页 我的博客
粤ICP备17103704号