Format | Description | Example
|
---|
%a | abbreviated weekday name | Tue
|
%A | full weekday name | Tuesday
|
%b | abbreviated month name | Jan
|
%B | full month name | January
|
%c | date and time | Tue Jan 14 19:40:30 1992
|
%d | day of the month: [01,31] | 14
|
%H | hour of the 24-hour day: [00,23] | 19
|
%I | hour of the 24-hour day: [01,12] | 07
|
%j | day of the year: [001,366] | 014
|
%m | month: [01,12] | 01
|
%M | minute: [00,59] | 40
|
%p | AM / PM | PM
|
%S | second: [00,61] | 30
|
%U | Sunday week number: [00,53] | 02
|
%w | weekday: [0=Sunday,6] | 2
|
%W | Monday week number: [00,53] | 02
|
%x | date | 01/14/92
|
%X | time | 19 : 40 : 30
|
%y | year without century: [00,99] | 92
|
%Y | year with century | 1992
|
%Z | time zone name | MST
|