Defined in header
char* ctime( const std::time_t* time );
Www Mmm dd hh:mm:ss yyyy
Www- the day of the week (one of
Mmm- the month (one of
dd- the day of the month
The function does not support localization.
|time||-||pointer to a std::time_t object specifying the time to print|
Pointer to a static null-terminated character string holding the textual representation of date and time. The string may be shared between
std::asctime and std::ctime, and may be overwritten on each invocation of any of those functions.
This function returns a pointer to static data and is not thread-safe. In addition, it modifies the static std::tm object which may be shared with std::gmtime and std::localtime. POSIX marks this function obsolete and recommends std::strftime instead.
The behavior may be undefined for the values of time_t that result in the string longer than 25 characters (e.g. year 10000)
Tue Dec 27 17:21:29 2011
C documentation for ctime