Converts the time information into a string.
#include <time.h> char *asctime ( const struct tm *localtime);
char *asctime_r ( const struct tm *localtime, char *timestr);
(IN) Points to the structure containing the time information to convert.
(OUT) Points to a buffer for the converted string.
Returns a pointer to the character string result.
The asctime and asctime_r functions convert the time information in the structure pointed to by localtime into a string containing exactly 26 characters.
This string has the form shown in the following example:
Wed Mar 21 15:58:27 2002\n\0
All fields have a constant width. The newline character \n and the null character (\0) occupy the last two positions of the string. The area containing the returned string is reused each time asctime is called.
The asctime_r function provides the same functionality as asctime, but asctime_r is designed for use with a reentrant NLMâ„¢. The asctime_r function allows the caller to pass storage for the results rather than relying on per-thread data.