WCSFTIME(3)
π« WCSFTIME(3) π«
okay so this is a page from the Library Functions Manual (that's the manual name bestie, we're in the library section, specifically the Standard C Library β libc, linked with -lc π«Ά), and it's literally all about turning a date/time into a wide-character string. slay.
β¨ NAME β¨
wcsftime β convert date and time to a wide-character string π
πΈ LIBRARY πΈ
Standard C Library (libc, -lc) β yeah she lives in libc, she's built in, no extra shopping required π
π¦ SYNOPSIS π¦
#include <wchar.h>
size_t
wcsftime(wchar_t * restrict wcs, size_t maxsize,
const wchar_t * restrict format,
const struct tm * restrict timeptr);
like, look at her. four args, all wide-char-coded, all restricted. iconic. β
π DESCRIPTION π
okay so the whole vibe: wcsftime() is literally the same as strftime() except for the types of its arguments β that's it, that's the difference, no cap. π―
if you want the detailed description (the actual tea about what each conversion specifier does), go read strftime(3) β she's the main character, this one's her wide-char sister. π₯
π COMPATIBILITY π
not me telling you this, but some early implementations of wcsftime() had a format argument with type const char * instead of const wchar_t * π so if you're out here on some ancient system and things look cursed, that's probably why. fr fr, check your types.
π SEE ALSO π
strftime(3)β the narrow-char original, go read her for the details π
π§ STANDARDS π§
wcsftime() conforms to ISO/IEC 9899:1999 ("ISO C99") β certified, official, standard-issue queen πβ¨
ok that's the whole page bestie, it's short and sweet and we ate π
sign-off time: this cutie comes to you from Debian, dated September 8, 2002 π mwah, go format some wide strings, ily π«ΆπΈ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2002 Tim J. Robbins
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms