Convert a timestamp to UTC
time_t stamp = time(NULL);\nstruct tm utc;\nstruct tm *result = gmtime_s(&stamp, &utc);\n\nThe caller supplies both the time_t value and the struct tm object that receives the broken-down UTC time.
gmtime_s is an Annex K C library function that converts a time_t value into broken-down universal time, UTC. Its result object is supplied by the caller. section 8.5
TAKEAWAY: Choose gmtime_s for UTC and localtime_s for local time; mktime performs the corresponding local-time conversion in the opposite direction. section 8.5
