Guardian C Library Calls Reference Manual
strftime
3-200 128833—Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
Usage Guidelines
•
The format string consists of zero or more conversion specifiers. A conversion
specifier consists of a % character followed by a character that determines the
behavior of the conversion specifier. Each conversion specifier is replaced by the
appropriate characters as described in the following list:
Conversion
Specifier What gets printed Example
%a abbreviated weekday name Mon
%A full weekday name Monday
%b abbreviated month name Sep
%B full month name September
%c date and time Sep 16 01:03:52 1773
%d day of the month 01
%H hour of the 24-hour day (00-24) 22
%I hour of the 12-hour day (00-12) 09
%j day of the year 263
%m month of the year 11
%M minutes after the hour 21
%p AM or PM PM
%S seconds after the minute 59
%U week of the year (0-53) 34
%w day of the week (0-6), Sunday = 0 5
%W week of the year with first
Monday as first day of week 1
24
%x date 01/20/1957
%X time 3:45:08 PM
%y year of the century 92
%Y year 1992
%% percent character %