localtime function — Extracts parts of a local time
tm* localtime(const time_t* timeptr)
The localtime
function
expands the calendar time pointed to by timeptr
into a static tm
object using local time. It returns a
pointer to the static object. Subsequent calls to localtime
overwrite the object. The static
object can be shared with gmtime
.