long int tm_gmtoff
This field describes the time zone that was used to compute this broken-down time value, including any adjustment for daylight saving; it is the number of seconds that you must add to UTC to get local time. You can also think of this as the number of seconds east of UTC. For example, for U.S. Eastern Standard Time, the value is -5*60*60. The tm_gmtoff field is derived from BSD and is a GNU library extension; it is not visible in a strict ISO C environment.
看看你的time.h中有没有相关内容
struct tm
{
int tm_sec; /* Seconds. [0-60] (1 leap second) */
……………………………………
#ifdef __USE_BSD
long int tm_gmtoff; /* Seconds east of UTC. */
__const char *tm_zone; /* Timezone abbreviation. */
#else
long int __tm_gmtoff; /* Seconds east of UTC. */
__const char *__tm_zone; /* Timezone abbreviation. */
#endif
};
【 在 linton (雨·雪·风·霜) 的大作中提到: 】
: Solaris 10 x86, gcc 3.4.6
: # make
: make -s all-recursive
: ...................
--
FROM 221.122.63.*