Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > asctime

asctime

Example: asctime Date and Time Functions

Converts time from a structure to a string.

char *asctime( const struct tm *tmTime);

tmTime A 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.