Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

wcsftime(3) Guardian Native C Library Calls Reference Manual
V The week number of the year (Monday as the first day of the
week). Output format is a decimal number between 1 and
53. If the week containing 1 January has four or more days
in the new year, it is considered week 1; otherwise it is week
53 of the previous year, and the next week is week 1.
w The day of the week is output as a number between 0 (Sun-
day) and 6.
W Specifies the week number of the year (Monday as the first
day of the week). Output format is a decimal number
between 0 and 53.
x The short date is output in the format specified for the
current locale.
X The time is output in the format specified for the current
locale.
y The year is output as a number (without the century)
between 00 and 99.
Y The year is output as a number (with the century) between
0000 and 9999.
Z The (standard time or daylight saving time) time-zone name
is output as a string from the environment variable TZ
(CDT, for example). If no time-zone information exists, no
characters are output.
% The %(percent) character is output.
When a conversion code character is not from the preceding list, the behavior of this function is
undefined.
NOTES
The %S seconds field can contain a value up to 61 seconds rather than up to 59 seconds to allow
leap seconds that are sometimes added to years to keep clocks in correspondence with the solar
year.
RETURN VALUES
The wcsftime() function returns the number of wide characters written into the array pointed to
by the wcs parameter when the total number of resulting wide characters, including the terminat-
ing null character, is not more than the value of the maxsize parameter. The returned value does
not count the terminating null wide character in the number of wide characters written into the
array. Otherwise, a value of 0 (zero) cast to size_t is returned and the contents of the array are
undefined.
RELATED INFORMATION
Functions: ctime(3), mbstowcs(3), setlocale(3), strftime(3), strptime(3).
7144 Hewlett-Packard Company 527192-018