Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
Guardian Native C Library Calls (s) strftime(3)
The format parameter has the following syntax:
[ordinary-text][%[[-|0]width][.precision] format-code [ordinary-text]]...
ordinary-text Text that is copied to the output parameter with no changes.
width A decimal digit string that specifies the minimum field width. If the width of
the item equals or exceeds the minimum field width, the minimum is
ignored. If the width of the item is less than the minimum field width, the
function justifies and pads the item. The optional - (minus sign) or 0 (zero
digit) control the justification and padding as follows:
None The item is right justified and spaces are added to the begin-
ning of the item to fill the minimum width.
Minus sign The item is left justified and spaces are added to the end of
the item to fill the minimum width.
Zero digit The item is right justified and zeros are added to the begin-
ning of the item to fill the minimum width.
precision A decimal string that specifies the minimum number of digits to appear for
the d, H, I, j, m, M, o, S, U, w, W, y, and Y conversion formats and the max-
imum number of characters to used from the a, A, b, B, c, D, E, h, n, N, t, T,
x, X, Z, and % conversion formats.
If no field width or precision is specified for the d, H, I, m, M, S, U, W,ory
conversion character, a default precision of .2 is used. If no field width or
precision is specified for the j conversion character, a default precision of 3
is used.
format-code A single character that specifies the date and time conversion to perform.
The following list describes the conversion code characters:
a The short day of the week is output as a string as defined for
the current locale (Mon, for example).
A The long day of the week is output as defined for the current
locale (Monday, for example).
b or h The short month is output as a string as defined for the
current locale (Jan, for example).
B The long month is output as a string as defined for the
current locale (January, for example).
c The date and time are output with the default date and time
as defined for the current locale.
C The century is output as a decimal number in the range 00 to
99.
d The day of the month is output as a number between 01 and
31.
527192-007 Hewlett-Packard Company 6−65