1 #include "../git-compat-util.h"
 
   5 struct tm *git_gmtime(const time_t *timep)
 
   7         static struct tm result;
 
   8         return git_gmtime_r(timep, &result);
 
  11 struct tm *git_gmtime_r(const time_t *timep, struct tm *result)
 
  15         memset(result, 0, sizeof(*result));
 
  16         ret = gmtime_r(timep, result);
 
  19          * Rather than NULL, FreeBSD gmtime simply leaves the "struct tm"
 
  20          * untouched when it encounters overflow. Since "mday" cannot otherwise
 
  21          * be zero, we can test this very quickly.
 
  23         if (ret && !ret->tm_mday) {