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

Syntax

#include <wchar.h>

size_t wcsftime(wchar_t *wcs, size_t maxsize, const wchar_t *format,

const struct tm *timptr); 

Description

wcsftime() writes wide character codes to the field 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 maximum maxsize wide character codes.

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

Rerurn val.

Integer 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 field content is undefined.

Errors

wcsftime() will fail if:


ENOMEM

There is not enough memory available for the internal management data.

See also

strftime(), mbtowcs(), wchar.h.