Date and Time format string

来源:转载

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"



分享给朋友:
您可能感兴趣的文章:
随机阅读: