xref: /haiku/src/system/libroot/posix/musl/time/time_impl_haiku.h (revision e1c4049fed1047bdb957b0529e1921e97ef94770)
1 static 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