Ctime
ctime is a function in the C standard library, declared in time.h, that converts a calendar time expressed as a time_t value into a human-readable string. It takes a pointer to a time_t object and returns a pointer to a statically allocated C string containing the local time representation; the exact format is implementation-defined but is commonly similar to a date and time like "Www Mmm dd hh:mm:ss yyyy" followed by a newline. The returned string is null-terminated.
Because ctime uses a static internal buffer, successive calls overwrite the same memory, so the result is
Usage typically involves obtaining a time_t value (for example, by calling time) and then passing its address
ctimes are part of the broader family of time formatting functions, which also include asctime, localtime, gmtime,