libwchar2 0.0.10
wcsftime manual

wcsftime() - convert date and time to a formatted wide-character string

Copies into destination the content of format, expanding its format tags into the corresponding values as specified by time ptr, with a limit of maxsize characters.

This is the wide-character counterpart of strftime().
So that we do not have to duplicate the code of strftime(), we convert the format string to multibyte, call strftime(), then convert the result back into wide characters.

Return Value

The wcsftime() function returns size of destination wide string.
Otherwise, zero is returned and the contents of the array are indeterminate.

See example

See also
https://github.com/ClnViewer/LibWchar2/blob/master/test/test_wcsftime.c

LibWchar2 information
Version
libwchar2 0.0.10
Date
Wed Aug 22 2018
Author
(c) PS 2018-2018
Manual author and license