gmtime function — Extracts parts of a UTC time
tm* gmtime(const time_t* timeptr)
The gmtime
function expands
the calendar time pointed to by timeptr
into a static tm
object using Coordinated Universal Time
(UTC). It returns a pointer to the static object. Subsequent calls
to gmtime
overwrite the object.
The static object can be shared with localtime
.
If UTC is not available (for example, the host operating system does not provide the time zone offset), a null pointer is returned.