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

ctime

Example: ctime Date and Time Functions

Converts the system time to local time.

char *ctime( const time_t *calTime);

calTime The name of the value for the calendar time.

Under Linux, ctime is not thread-safe. Use ctime_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.