Created
August 23, 2013 09:29
-
-
Save sandyxu/6317336 to your computer and use it in GitHub Desktop.
strftime方法中可用的 ISO 8601 格式化符号
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%a 星期的缩写,如Wed | |
%A 星期的全称,如Wednesday | |
%U 本星期在全年中所属的周数 | |
%W | |
%H 小时(24小时制) | |
%M 分钟 | |
%S 秒 | |
%I 小时(12小时制) | |
%p PM 或 AM | |
%b 月份的缩写,如 Jan | |
%B 月份的全称,如 January | |
%c 本地日期和时间,如 06/14/07 16:43:49 | |
%d 日期 (01..31) | |
%j 本日在一年中所属的天 (1..366) | |
%m 月份 (01..12) | |
%w 星期的数字形式 (0..6) | |
%x 本地日期,如 06/14/07 | |
%X 本地时间,如 16:43:49 | |
%y 2位的年份表示,如07 | |
%Y 4位的年份表示,如2007 | |
%Z 时区名,如"中国标准时间" | |
%% 字面符号% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment