时间操作
一)os.time ([table])
字段名称 取值范围
year 四位数字
month 1--12
day 1--31
hour 0--23
min 0--59
sec 0--59
isdst boolean(true表示夏令时)print(os.time())
a = { year = 2018, month = 1, day = 30, hour = 0, min = 0, sec = 0 }
print(os.time(a)) 二)os.difftime (t2, t1)
三)os.date ([format [, time]])
Last updated