1710 |
tm->tm_min = min; |
tm->tm_min = min; |
1711 |
tm->tm_sec = sec; |
tm->tm_sec = sec; |
1712 |
|
|
1713 |
#ifdef HAVE_TM_ISDST |
#ifdef HAVE_STRUCT_TM_TM_ISDST |
1714 |
tm->tm_isdst = -1; /* unknown whether it's dst or not */ |
tm->tm_isdst = -1; /* unknown whether it's dst or not */ |
1715 |
#endif |
#endif |
1716 |
#ifdef HAVE_TM_GMTOFF |
#ifdef HAVE_STRUCT_TM_TM_GMTOFF |
1717 |
tm->tm_gmtoff = tzoffset; |
tm->tm_gmtoff = tzoffset; |
1718 |
#endif |
#endif |
1719 |
#ifdef HAVE_TM_ZONE |
#ifdef HAVE_STRUCT_TM_TM_ZONE |
1720 |
tm->tm_zone = tz_name; |
tm->tm_zone = tz_name; |
1721 |
#endif |
#endif |
1722 |
} |
} |