Defined in header <time.h>
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 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
asctime and 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 tm object which may be shared with gmtime and localtime. POSIX marks this function obsolete and recommends 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)
|This section is incomplete|
Reason: no example
C++ documentation for ctime