Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)

strptime(3) Guardian Native C Library Calls Reference Manual
Y Inputs the year, including the century (for example, 1991).
Z Inputs the time-zone name.
% Inputs a % (percent sign) character.
Alternative-format Directives
The E and O characters can be used with some of the directives to stipulate that an alternative
format be used, if available. If the alternative format is not available in the locale, the modier
will be ignored, and the unmodied behavior for that directive will be followed.
Ec Inputs the date and time, using the locale-dependent alternative format.
EC Inputs the period, using the locale-dependent alternative format.
Ex Inputs the date, using the locale-dependent alternative format.
EX Inputs the time, using the locale-dependent alternative format.
Ey Inputs the year within the century, using the locale-dependent alternative format.
EY Inputs the year (including the century), using the locale-dependent alternative
format.
Od Inputs the day of the month, using the locale-dependent alternative format.
Oe Same as Od.
OH Inputs the hour (24-hour clock), using the locale-dependent alternative format.
OI Inputs the hour (12-hour clock), using the locale-dependent alternative format.
Om Inputs the month number, using the locale-dependent alternative format.
OM Inputs the minute, using the locale-dependent alternative format.
OS Inputs the second, using the locale-dependent alternative format.
OU Inputs the week number (Sunday as rst day), using the locale-dependent alter-
native format.
Ow Inputs the weekday, using the locale-dependent alternative format.
OW Inputs the week number (Monday as rst day), using the locale-dependent alter-
native format.
A directive consisting of white-space characters is performed by reading input until reaching the
rst nonwhite-space character, which is not read, or until no more characters can be read.
A directive consisting of an ordinary character is performed by reading the next character from
the buf parameter. If the character read from the buf parameter differs from the character
comprising the directive, the directive fails and the differing character and any characters follow-
ing it remain unread. Case is ignored when matching buf items, such as month or weekday
names.
If a conversion fails, the contents of the tm structure are undened.
In most cases, it is possible to use the same format in the strftime( ) and strptime() calls because
most of the conversion specications formats are identical in both functions.
678 Hewlett-Packard Company 527192-007