lua os.date()参数

来源:互联网 发布:c语言文件加密程序 编辑:程序博客网 时间:2024/05/22 10:35
格式描述示例os.date("%a")abbreviated weekday name Sunos.date("%A")full weekday nameSundayos.date("%b")abbreviated month name Julos.date("%B")full month nameJulyos.date("%c")date and time07/27/14 17:42:09os.date("%d")day of the month27os.date("%H")hour, using a 24-hour clock (23) [00-23]17os.date("%I")hour, using a 12-hour clock (11) [01-12]5os.date("%M")minute (48) [00-59]42os.date("%m")month (09) [01-12]7os.date("%p")either "am" or "pm" (pm)PMos.date("%S")second (10) [00-61]9os.date("%w")weekday (3) [0-6 = Sunday-Saturday]0os.date("%x")date07/27/14os.date("%X")time (e.g., 23:48:10)17:42:09os.date("%Y")full year (1998)2014os.date("%y")two-digit year (98) [00-99]14
0 0
原创粉丝点击