Example: asctimeDate and Time Functions

Converts time from a structure to a string.

char *asctime( const struct tm *tmTime);

tmTimeA time structure.

Under Linux, asctime is not thread-safe. Use asctime_r, instead. Refer to your platform-specific documentation for details.

Return Values

A pointer to the string containing the date and time information in readable format.