Defined in header <time.h> char* ctime( const time_t* time ); (1) errno_t ctime_s(char *buffer, rsize_t bufsz, const time_t *time); (2) (since C11)
1) Converts given time since epoch to a calendar local time and then to a textual representation, as if by calling asctime(localtime(time)).
2) Same as (1), except that the function is equivalent to asctime_s(buffer, bufsz, localtime_s(time, &(struct tm){0})), and the following errors are detected at runtime and call