Next: asctime_r
, Previous: alphasort
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
asctime
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/asctime.html
Gnulib module: —
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
strftime
(or even sprintf
) instead.
However, strftime
is locale dependent.
ctime
.
localtime
return, this is typically a mistake.
On most current platforms, these functions return a null pointer for
timestamps out of range, and this function has undefined behavior in
that case.