Home Segments Index Top Previous Next

Appendix D:

Formatted Time Display

The following is a representative list of the specifications that are used in C's strftime statements:

Specification Argument type
%a abbreviated weekday name
%A full weekday name
%b abbreviated month name
%B full month name
%d day of the month
%H hour (24 hour clock)
%I hour (12 hour clock)
%m month (01–12)
%M minute (00–59)
%p AM or PM
%S second (00-59)
%y year without century
%Y year with century
%% %