标签:pac gettime lin 时间戳 ace func time cond oca
1、时间戳转换成时间
local t = 1412753621000
function getTimeStamp(t) return os.date("%Y%m%d%H",t/1000)endprint(getTimeStamp(t))os.time({day=17, month=5, year=2012, hour=0, minute=0, second=0}) -- 指定时间的时间戳
标签:pac gettime lin 时间戳 ace func time cond oca
原文地址:http://www.cnblogs.com/AaronBlogs/p/7464648.html