Lua os.time

2019-09-29  本文已影响0人  Wenchao

Lua 的 os.time 传入的int值范围

-- 传入的值在0 - 2 ^ 32 - 1 = 2147483647
print(os.date("%c",0)) -- ouput : 01/01/70 08:00:00
print(os.date("%c",2147483647)) -- output : 01/19/38 11:14:07
上一篇下一篇

猜你喜欢

热点阅读