-/*
- * The European tables ... based on hearsay
- * Believed correct for:
- * WE: Great Britain, Ireland, Portugal
- * ME: Belgium, Luxembourg, Netherlands, Denmark, Norway,
- * Austria, Poland, Czechoslovakia, Sweden, Switzerland,
- * DDR, DBR, France, Spain, Hungary, Italy, Jugoslavia
- * Eastern European dst is unknown, we'll make it ME until someone speaks up.
- * EE: Bulgaria, Finland, Greece, Rumania, Turkey, Western Russia
- */
-static struct dstab wedaytab[] = {
- 1983, 86, 303, /* 1983: end March - end Oct */
- 1984, 86, 303, /* 1984: end March - end Oct */
- 1985, 86, 303, /* 1985: end March - end Oct */
- 0, 400, 0, /* others: no daylight saving at all ??? */
+ (void) sprintf(result, "%.3s %.3s%3d %02d:%02d:%02d %d\n",
+ wday_name[timeptr->tm_wday],
+ mon_name[timeptr->tm_mon],
+ timeptr->tm_mday, timeptr->tm_hour,
+ timeptr->tm_min, timeptr->tm_sec,
+ TM_YEAR_BASE + timeptr->tm_year);
+ return result;
+}
+
+#ifndef TRUE
+#define TRUE 1
+#define FALSE 0
+#endif /* !TRUE */
+
+extern char * getenv();
+extern char * strcpy();
+extern char * strcat();
+struct tm * offtime();
+
+struct ttinfo { /* time type information */
+ long tt_gmtoff; /* GMT offset in seconds */
+ int tt_isdst; /* used to set tm_isdst */
+ int tt_abbrind; /* abbreviation list index */