Converts the specified date and time into a formatted wide-character string.
#include <wchar.h> size_t wcsftime ( wchar_t *wcs, size_t maxsize, const wchar_t *format, const struct tm *timeptr);
(OUT) Points to the character array for the converted wide-character string.
(IN) Specifies the maximum number of wide characters that can be placed in the array.
(IN) Points to the format control string.
(IN) Points to the tm structure to convert. (For a description, see Volume 2).
If the number of wide characters to be placed into the array is less than the value specified by the maxsize parameter, the function returns the number of wide characters placed into the array pointed to by the wcs parameter (not including the null-terminating wide character). Otherwise, it returns 0 and the contents of the array are unspecified.
The wcsftime function formats the time in the timeptr parameter into the array pointed to by the wcs parameter according to the format parameter.
Local timezone information is used.
The format parameter string is a null-terminated string. It consists of zero or more directives and ordinary characters. A directive consists of a % character followed by a character that determines the substitution that is to take place. All ordinary characters are copied unchanged into the array. No more than the number of characters specified by the maxsize parameter are placed in the array.
The following conversion specifications are supported: