Beispiel #1
0
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;
}
Beispiel #2
0
int gettime( const time_t *t, struct tm* tp )
{
    return __offtime( t, 0, tp );
}