Timezone and daylight savings time
Posted: Thu Oct 14, 2004 6:39 pm
(now)
returns UTC while
(date (apply date-value (now))
returns the proper timezone corrected for daylight
savings time if the computer clock is set
to daylight savings time. Without parsing
the output of
(date (apply date-value (now))
is there a way to determine wether or not daylight
savings time is in effect on the computer? The
reason I ask is so that I can write something like
(set 'timezone (- 0 (last (now))))
(now timezone)
and get back the "now" list corrected not just
for the timezone but corrected for daylight savings
time as well.
returns UTC while
(date (apply date-value (now))
returns the proper timezone corrected for daylight
savings time if the computer clock is set
to daylight savings time. Without parsing
the output of
(date (apply date-value (now))
is there a way to determine wether or not daylight
savings time is in effect on the computer? The
reason I ask is so that I can write something like
(set 'timezone (- 0 (last (now))))
(now timezone)
and get back the "now" list corrected not just
for the timezone but corrected for daylight savings
time as well.