time function — Gets the current date and time
time_t time(time_t *timeptr)
The time
function returns
the current date and time in an implementation-defined format. If
the host environment cannot provide the date and time, static_cast<time_t>(-1)
is
returned.
If timeptr
is not null, the
return value is also stored in *timeptr
.