7.23.3.3 The gmtime function

Synopsis

1

#include <time.h>
struct tm *gmtime(const time_t *timer);

Description

2

The gmtime function converts the calendar time pointed to by timer into a broken- down time, expressed as UTC.

Returns

3

The gmtime function returns a pointer to the broken-down time, or a null pointer if the specified time cannot be converted to UTC.