Converts a struct tm time to a string.
char * asctime (struct tm time);
Required Header |
<time.h> |
Return Value
This function returns a pointer to the string result.
Parameters
time
The time to be converted to a string
Remarks
The asctime function return a string representing time. The string returned uses an internal buffer which is thread-specific. Each thread that calls this function should copy the result before making additional calls to this function. Multiple threads calling this function will not interfere with one another.
The format of the returned string is: "Tue Aug 05 18:30:00 2003\n"