lua os.date()
2016-07-22 17:15
507 查看
来源:http://blog.sina.com.cn/s/blog_a53e5daf0102uxyi.html
转载▼
lua os.date()参数
转载▼
标签: | 分类: Lua |
格式 | 描述 | 示例 |
os.date("%a") | abbreviated weekday name | Sun |
os.date("%A") | full weekday name | Sunday |
os.date("%b") | abbreviated month name | Jul |
os.date("%B") | full month name | July |
os.date("%c") | date and time | 07/27/14 17:42:09 |
os.date("%d") | day of the month | 27 |
os.date("%H") | hour, using a 24-hour clock (23) [00-23] | 17 |
os.date("%I") | hour, using a 12-hour clock (11) [01-12] | 5 |
os.date("%M") | minute (48) [00-59] | 42 |
os.date("%m") | month (09) [01-12] | 7 |
os.date("%p") | either "am" or "pm" (pm) | PM |
os.date("%S") | second (10) [00-61] | 9 |
os.date("%w") | weekday (3) [0-6 = Sunday-Saturday] | 0 |
os.date("%x") | date | 07/27/14 |
os.date("%X") | time (e.g., 23:48:10) | 17:42:09 |
os.date("%Y") | full year (1998) | 2014 |
os.date("%y") | two-digit year (98) [00-99] | 14 |
相关文章推荐
- leetcode_c++:栈:Evaluate Reverse Polish Notation(150)
- How to evaluate and motivate a speech
- leetcode150 Evaluate Reverse Polish Notation
- leetcode150 Evaluate Reverse Polish Notation
- Evaluation
- sublime 设置自动把某个文件按指定语法解析
- LeetCode - 150. Evaluate Reverse Polish Notation
- 编写C模块供Lua使用
- openresty-lua代码的语法检查
- skynet特性
- lua的require
- leetcode 150. Evaluate Reverse Polish Notation java 算法
- lua实现伪多态继承
- lua语言的几点技巧
- Sublime Text 2 Lua 配置
- sublime text 2安装插件 lua
- lua协程的一个应用
- Lua - table 当作 dictionary 乱序
- Lua中的模块与module函数详解
- 从零开始制作2048游戏