Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

wcsftime - Convert date and time to wide character string

&pagelevel(4)&pagelevel

Definition   

#include <wchar.h>

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

wcsftime writes wide character codes to the array pointed to by wss in accordance with the string specified in format.

The function behaves as if a string generated by strftime had been passed to mbtowcs as an argument, and mbtowcs in turn passes the result to wcsftime as a wide character string with a maximum of maxsize wide character codes.

If copying is between overlapping objects, the result is undefined.

Return val.

Integer>0

which indicates the number of wide character codes written to the field (without a terminating null) if the number of wide character codes including the terminating null is less than or equal to maxsize.

0

otherwise. In this case, the contents of the array are undefined.

See also

strftime, mbtowcs