HP-UX Reference (11i v1 00/12) - 3 Library Functions N-Z (vol 7)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/nan.3m
________________________________________________________________
___ ___
s
strftime(3C) strftime(3C)
%x Locale’s appropriate date representation.
%X Locale’s appropriate time representation.
%y Year without century as a decimal number [00,99].
%Y Year with century as a decimal number.
%Z Time zone name (or by no characters if no time zone exists).
%% The percent (%) character.
The following directives are provided for backward compatibility with the directives supported by date(1)
and the ctime(3C) functions. These directives may be removed in a future release. It is recommended that
the directives above be used in preference to those below.
%E Locale’s combined Emperor/Era name and year (use %EC%Ey instead).
%F Locale’s full month name (use %B instead).
%N Locale’s Emperor/Era name (use %EC instead).
%o Locale’s Emperor/Era year (use %Ey instead).
%z Time zone name (or by no characters if no time zone exists) (use %Z instead).
If a directive is not one of the above, the behavior is undefined.
Modified Conversion Specifiers
Some conversion specifiers can be modified by the E or O modifer characters to indicate that an alternative
format or specification should be used rather than the one normally used by the unmodified conversion
specifier. If the alternative format or specification does not exist for the current locale, the behavior will be
as if the unmodified conversion specification were used. Alternative numeric symbols refers to those sym-
bols defined by the ALT_DIGIT (see langinfo(5)) in the locale.
%Ec The locales alternative appropriate date and time representation.
%EC The name of the base year (period/Emperor/Era) in the locale’s alternative representation.
%Ex The locales alternative date representation
%EX The locales alternative time representation.
%Ey The offset from %EC (year only) in the locale’s alternative representation.
%EY The full alternative year representation.
%Od The day of the month, using the locale’s alternative numeric symbols, filled as needed with
leading zeros if there is any alternative symbol for zero, otherwise with leading spaces.
%Oe the day of the month, using the locale’s alternative numeric symbols, filled as needed with
leading spaces.
%OH The hour (24-hour clock) using the locales alternative numeric symbols.
%OI The hour (12-hour clock) using the locales alternative numeric symbols.
%Om The month using the locales alternative numeric symbols.
%OM The minutes using the locale’s alternative numeric symbols.
%OS The seconds using the locale’s alternative numeric symbols.
%Ou The weekday as a number in the locale’s alternative representation (Monday=1).
%OU The week number of the year (Sunday as the first day of the week, rules corresponding to
%U) using the locales alternative numeric symbols.
%OV The week number of the year (Monday as the first day of the week, rules corresponding to
%V) using that locale’s alternative numeric symbols.
%Ow The number of the weekday (Sunday=0) using the locale’s alternative numeric symbols.
%OW The week number of the year (Monday as the first day of the week) using the locale’s alter-
native numeric symbols.
%Oy The year (offset from %C) in the locale’s alternative representation and using the locale’s
alternative symbols.
HP-UX Release 11i: December 2000 2 Section 3883
___
___