%a |
Abbreviated day of the week |
%b |
Abbreviated month name (same as %h) |
%c |
Locale's preferred date and time stamp |
%d |
Two-digit day of the month with leading zeros |
%e |
Day of month with space preceding single digits |
%H |
Two-digit hour in 24-hour format |
%h |
Abbreviated month name (same as %b) |
%I |
Two-digit hour in 12-hour format |
%j |
Three-digit numeric day of the year with leading zeros |
%k |
Hour in 24-hour format with space preceding single digits |
%L |
Millisecond of the second (000..999) |
%l |
Two-digit hour in 12-hour format |
%o |
Ornate day of month - e.g., "1st", "2nd", "3rd", "25th" |
%r |
Equivalent to "%I:%M:%S %p" |
%s |
Unix Epoch Time timestamp |
%U |
Week number of the year (starting with the first Sunday as the first week) |
%u |
Numeric representation of the day of the week (ISO-8601), with Monday as '1' |
%W |
Numeric representation of the week of the year, starting with the first Monday as the first week |
%w |
Numeric representation of the day of the week, with Sunday as '0' |
%X |
Locale's preferred time representation without date |
%x |
Locale's preferred date representation without time |
%z |
Time zone offset from UTC |