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

w
wcsftime(3C) wcsftime(3C)
%M Minute as a decimal number [00,59].
%n The New-line character.
%p Locale’s equivalent of either
AM or PM.
%r The time in AM and PM notation; in the POSIX locale this is equivalent to %I:%M:%S %p.
%R The time in 24 hour notation (%H:%M).
%S Second as a decimal number [00,61].
%t The Tab character.
%T The time in hours, minutes, and seconds (%H:%M:%S).
%u The weekday as a decimal number [1(Monday),7].
%U Week number of the year (Sunday as the first day of the week) as a decimal number
[00,53]. All days in a new year preceding the first Sunday are considered to be in week 0.
%V The week number of the year (Monday as the first day of the week) as a decimal number
[01,53]. If the week containing January 1st has four or more days in the new year, then it
is considered week 1; otherwise, it is week 53 of the previous year, and the next week is
week 1.
%w Weekday as a decimal number [0(Sunday),6].
%W Week number of the year (Monday as the first day of the week) as a decimal number
[00,53]. All days in a new year preceding the first Monday are considered to be in week 0.
%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
and the ctime() 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 modifier 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 locales alternative representation.
%Ex The locale’s alternative date representation
%EX The locale’s 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 locale’s alternative numeric symbols.
%OI The hour (12-hour clock) using the locale’s alternative numeric symbols.
HP-UX 11i Version 2: December 2007 Update 2 Hewlett-Packard Company 625