1 2 3 4 5 6 7 8 9 10 11
#include <time.h> #include "__time.h" struct tm *gmtime(const time_t *t) { static struct tm tm; __time_to_tm(*t, &tm); tm.tm_isdst = 0; return &tm; }