...
The asctime() function primarily exists for compatibility with older implementations. Also, the asctime() function does not support localized date and time formats. The POSIX standard developers decided to mark the asctime() function obsolescent, even though it is in the C Standard, because of the possibility of buffer overflow.
...