lua os.time用法
来源:互联网 发布:mac 安装wget命令 编辑:程序博客网 时间:2024/04/30 11:21
用法很简单,也很多地方可以找到
local time_tb = {
year = 1970,
--a full year
month = 1,
--01-12
day = 1,
--01-31
hour = 8
--01-31
min = 0,
00-59
--sec = 0
00-59
isdst = false
--a boolean, true if daylight saving
}
os.time(time_tb)
将一个table型的年月日转换成时间戳。注意的是计算机初始时间是 1971年1月1日8时,这个时间以前的都会返回nil,官网没有指出来,记下这个坑
0 0
- lua os.time用法
- lua os.time与os.date的简单用法
- lua os.time() 和os.date()
- lua 时间函数os.time()和os.date()
- cocos-Lua中的os.time()与os.date()
- lua 时间函数os.time()和os.date()
- Lua学习与交流——Lua os.date 和 os.time 分享
- lua os.time()时区的坑……
- Lua库函数——math.randomseed()、os.time()的使用
- lua时间函数操作和对比代码,os.date() os.time()
- lua时间函数操作和对比代码,os.date() os.time()
- os.time与os.date
- os.time 和 os.date
- lua Date和Time
- lua Date和Time
- lua Date和Time
- lua Date和Time
- lua Date和Time
- HTTP基础知识(一)
- mysql 重装过程中遇到的问题
- 全局雾效1
- Spring 中DriverManagerDataSource 和SimpleDriverDataSource 区别
- IO流_Properties的特殊功能使用
- lua os.time用法
- androidstudio模拟器错误emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disabl
- Groovy简介和一点资源
- HDU3594-仙人掌图
- docker同步镜像报错Network timed out while trying to connect
- index_merge引发的死锁排查
- Android ViewDragHelper使用总结
- freeimage例子资料整理
- CC2640R2F之IAR下载、安装及注册