Date and Time format string

来源:互联网 时间:1970-01-01

Specifier Description
%Y Year (four digits)
%y Year (last two digits)
%b, %B Short month, full month
%m Month (number)
%d Day of month (left-padded with zeros)
%e Day of month (left-padded with blanks)
%a, %A Short day name, full day name
%H, %I Hour (24-hour clock), hour (12-hour clock)
%M Minute
%S Second
%c Equivalent to "%a %b %d %H:%M:%S %Y"
%x Equivalent to "%m/%d/%y"



相关阅读:
Top