YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容！ - 时间格式
type: channel
link: https://www.yiem.net/tag/%E6%97%B6%E9%97%B4%E6%A0%BC%E5%BC%8F/
items: 时间格式化对照表 - yyyy-MM-dd HH:mm:ss

时间格式化对照表 - yyyy-MM-dd HH:mm:ss
type: item
date: 2019-02-17T02:44:00+08:00
description: 时间格式化对照表 - yyyy-MM-dd HH:mm:ss时间格式化对照表 仅供参考标识符含义aAM/PM(上午/下午) A0~86399999 (一天的第A微秒) c/cc1~7 (一周的第一天, 周天为1) cccSun/Mon/Tue/Wed/Thu/Fri/Sat (星期几简写) ccccSunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday (星期几全拼) d1~31 (月份的第几天, 带0) D1~366 (年份的第几天,带0) e1~7 (一周的第几天, 带0) E~EEESun/Mon/Tue/Wed/Thu/Fri/Sat (星期几简写) EEEESunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday (星期几全拼) F1~5 (每月的第几周, 一周的第一天为周一) gJulian Day Number (number of days since 4713 BC January 1) 未知 h1~12 (0 padded Hour (12hr)) 带0的时, 12小时制 H0~23 (0 padded Hour (24hr)) 带0的时, 24小时制 k1~24 (0 padded Hour (24hr) 带0的时, 24小时制 K0~11 (0 padded Hour (12hr)) 带0的时, 12小时制 L/LL1~12 (0 padded Month) 第几月 LLLJan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec 月份简写 LLLLJanuary/February/March/April/May/June/July/August/September/October/November/December 月份全称 m0~59 (0 padded Minute) 分钟 M/MM1~12 (0 padded Month) 第几月 MMMJan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec MMMMJanuary/February/March/April/May/June/July/August/September/October/November/December q/qq1~4 (0 padded Quarter) 第几季度 qqqQ1/Q2/Q3/Q4 季度简写 qqqq1st quarter/2nd quarter/3rd quarter/4th quarter 季度全拼 Q/QQ1~4 (0 padded Quarter) 同小写 QQQQ1/Q2/Q3/Q4 同小写 QQQQ1st quarter/2nd quarter/3rd quarter/4th quarter 同小写 s0~59 (0 padded Second) 秒数 S(rounded Sub-Second) 未知 u(0 padded Year) 未知 v~vvv(General GMT Timezone Abbreviation) 常规GMT时区的编写 vvvv(General GMT Timezone Name) 常规GMT时区的名称 w1~53 (0 padded Week of Year, 1st day of week = Sunday, NB: 1st week of year starts from the last Sunday of last year) 一年的第几周, 一周的开始为周日,第一周从去年的最后一个周日起算 W1~5 (0 padded Week of Month, 1st day of week = Sunday) 一个月的第几周 y/yyyy(Full Year) 完整的年份 yy/yyy(2 Digits Year) 2个数字的年份 Y/YYYY(Full Year, starting from the Sunday of the 1st week of year) 这个年份未知干嘛用的 YY/YYY(2 Digits Year, starting from the Sunday of the 1st week of year) 这个年份未知干嘛用的 z~zzz(Specific GMT Timezone Abbreviation) 指定GMT时区的编写 zzzz(Specific GMT Timezone Name) Z +0000(RFC 822 Timezone) 指定GMT时区的名称 常用日期/时间格式化字符:字符格式日期格式yyyy年MM月dd日 HH时mm分ss秒 EEEE 月份英文…