#ifdef HAVE_CONFIG_H #include RCSID("$Id$"); #endif #include #include time_t tm2time (struct tm tm, int local) { time_t t; tm.tm_isdst = -1; t = mktime (&tm); if (!local) t += t - mktime (gmtime (&t)); return t; }