1static inline const char* 2__tm_to_tzname(const struct tm *tm) 3{ 4 const void *p = tm->tm_zone; 5 if (p) 6 return p; 7 if (tm->tm_isdst >= 0) 8 return tzname[tm->tm_isdst != 0]; 9 10 return ""; 11} 12 13#define __tm_gmtoff tm_gmtoff 14#define __tm_zone tm_zone 15