4
* Quick and dirty emulation of tzset(), tzname[], and daylight
5
* for old BSD systems without it.
7
* Thanks to Rick Adams, rick@uunet.uu.net, for the basics.
10
* Totally ignores the value of the TZ environment variable.
18
static char tz1[1024];
19
static char tz2[1024];
21
/* external variables */
27
extern char *timezone();
35
(void) gettimeofday(&tp, &tz);
36
(void) strcpy(tz1, timezone(tz.tz_minuteswest, 0));
37
(void) strcpy(tz2, timezone(tz.tz_minuteswest, 1));
38
daylight = tz.tz_dsttime;