WCSFTIME(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’« 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