ctime

Example: ctimeDate and Time Functions

Converts the system time to local time.

char *ctime( const time_t *calTime);

calTimeThe 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.