fmt::gmtime

Converts given time since epoch as std::time_t value into calendar time, expressed in Coordinated Universal Time (UTC). Unlike std::gmtime, this function is thread-safe on most platforms.

Synopsis

Declared in <fmt/chrono.h>

tm
gmtime(time_t time);

Return Value

The corresponding calendar time in UTC.

Parameters

NameDescription
timeThe time since epoch to convert.