Command Character | Function |
---|---|
%a | is replaced by the abbreviated weekday name |
%A | is replaced by the weekday name |
%b | is replaced by the abbreviated month name |
%B | is replaced by the month name |
%d | is replaced by the day of the month number, 01 to 31 |
%H | is replaced by the hour of the day (military), 00 to 23 |
%I | is replaced by the hour of the day (civilian), 01 to 12 |
%j | is replaced by the day of the year, 001 to 366 |
%m | is replaced by the month number, 01 to 12 |
%M | is replaced by the minute, 00 to 59 |
%p | is replaced by the AM or PM designation |
%S | is replaced by the seconds, 00 to 59 |
%U | is replaced by the week# of the year, 00 to 53, Sunday is 1st day 1 |
%W | is replaced by the week# of the year, 00 to 53, Monday is 1st day 2 |
%w | is replaced by the day# of the week, 00 (Sunday) to 06 (Saturday) |
%y | is replaced by the 2 digits of the year, 00 to 99 |
%Y | is replaced by the full 4 digit year number—where% is the specified clock-indicator character |