Synopsis
#include <time.h>
char *asctime(const struct tm *tp);
char *asctime_r(const struct tm *tp, char *buf);
Description

asctime converts the *tp struct to a null terminated string of the form Sun Sep 16 01:03:52 1973\n. The returned string is held in a static buffer, this function is not re-entrant.

asctime_r is a re-entrant version of asctime, the parameter buf must point to an array at least 26 bytes in length.

See also

struct tm