#include <time.h> struct tm *gmtime_r(const time_t *timer, struct tm *buf) { gmtime_s(buf, timer); return buf; }
Programming Tips - Win32: Here's a gmtime_r() for Windows
Date: 2022apr16
Product: MSVC
Language: C/C++
Keywords: equivalent
Q. Win32: Here's a gmtime_r() for Windows
A. It can easily be written using gmtime_s: