DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

wcsftime(S)


wcsftime -- convert date and time to wide character string

Synopsis

#include <wchar.h>

int wcsftime(wchar_t *wcs, size_t size, const wchar_t *format, const struct tm *timeptr);

Description

wcsftime puts wide character codes into the array pointed to by wcs as controlled by the string pointed to by format. It behavior is similar to strftime, except that the format and the result are wide character strings. Not more than size wide characters are placed into the array pointed to by wcs. See strftime(S) for a complete description of the conversion specifications.

The behavior is undefined if copying takes place between objects that overlap.

Return values

If the size of the resultant wide character codes inclusive of the terminating null wide character code is within the size limit, wcsftime returns the number of wide character codes in the array pointed to by wcs, exclusive of the terminating null wide character code. Otherwise, it returns zero and the contents of the array are indeterminate.

Notices

If the feature test macro _XOPEN_SOURCE is defined, then the following synopsis may be defined:

int wcsftime(wchar_t *wcs, size_t size, const char *format, const struct tm *timeptr);

References

strftime(S), wchar(M)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005