lua中获取时间

os.date()    返回  XX/XX/XX XX:XX:XX

                         月/日/年    时:分:秒

os.time()   返回的是从1970年1月1日到现在的经过的秒数。

例如:

print(os.date())
print(os.time())

结果:

01/19/16 09:09:46

1453165786

原文地址:https://www.cnblogs.com/rohens-hbg/p/5141116.html