The following directives tell how to print or to parse times.
%a -- abbreviated weekday name
%A -- full weekday name
%b -- abbreviated month name
%B -- full month name
%c -- local date and time representation
%d -- day of the month (01-31)
%H -- hour (24-hour clock) (00-23)
%I -- hour (12-hour clock) (01-12)
%j -- day of the year (001-366)
%m -- month (01-12)
%M -- minute (00-59)
%p -- local equivalent of AM or PM
%S -- second (00-59)
%U -- week number of the year (Sunday as 1st day of the week) (00-53)
%w -- weekday (0-6, Sunday is 0)
%W -- week number of the year (Monday as 1st day of the week) (00-53)
%x -- local date representation
%X -- local time representation
%y -- year without century (00-99)
%Y -- year with century
%Z -- time zone name, if any
%% -- the % character
See the Section called Complex Example Using the %m Directive in Chapter 5, which demonstrates using these time-formatting commands to display time in a human-readable format.