Cameron Katri's Manual Page Server

Manual Page Search Parameters

WCSFTIME(3) Library Functions Manual WCSFTIME(3)

wcsftime, wcsftime_lconvert date and time to a wide-character string

Standard C Library (libc, -lc)

#include <wchar.h>

size_t
wcsftime(wchar_t *restrict wcs, size_t maxsize, const wchar_t *restrict format, const struct tm *restrict timeptr);

#include <wchar.h>
#include <xlocale.h>

size_t
wcsftime_l(wchar_t *restrict wcs, size_t maxsize, const wchar_t *restrict format, const struct tm *restrict timeptr, locale_t loc);

The () function is equivalent to the () function, except for the types of its arguments. Refer to strftime(3) for a detailed description.

While the () function uses the current locale, the () function may be passed a locale directly. See xlocale(3) for more information.

Some early implementations of wcsftime() had a format argument with type const char *, instead of const wchar_t *.

strftime(3), xlocale(3)

The wcsftime() function conforms to ISO/IEC 9899:1999 (“ISO C99”).

September 8, 2002 macOS