struct tm *gmtime_r(const time_t *t, struct tm *tp) { if (t == NULL || tp == NULL) return NULL; if (!__offtime(t, 0, tp)) return NULL; /* tp->tm_isdst = 0; tp->tm_zone = "GMT"; tp->tm_gmtoff = 0L; */ return tp; }
int gettime( const time_t *t, struct tm* tp ) { return __offtime( t, 0, tp ); }