2 * time support routines that are easier to do in C than in Lisp
6 * This software is part of the SBCL system. See the README file for
9 * This software is derived from the CMU CL system, which was
10 * written at Carnegie Mellon University and released into the
11 * public domain. The software is in the public domain and is
12 * provided with absolutely no warranty. See the COPYING and CREDITS
13 * files for more information.
20 void get_timezone(time_t when
, int *secwest
, boolean
*dst
)
25 ltm
= *localtime(&when
);
28 sw
= (((gtm
.tm_hour
*60)+gtm
.tm_min
)*60+gtm
.tm_sec
) - (((ltm
.tm_hour
*60)+ltm
.tm_min
)*60+ltm
.tm_sec
);
29 if ((gtm
.tm_wday
+ 1) % 7 == ltm
.tm_wday
)
31 else if (gtm
.tm_wday
== (ltm
.tm_wday
+ 1) % 7)