It's also a libc function that converts a time_t pointer to an ASCII date and time. Calling functions should copy the string into its own buffer, as the static data will be overwritten with each ctime() call.