emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calendar gets wrong end for Daylight Savings Time


From: Glenn Morris
Subject: Re: calendar gets wrong end for Daylight Savings Time
Date: Wed, 08 Nov 2006 21:01:34 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Richard Stallman wrote:

>     I would assume that M-x calendar must use the database directly
>     to find out _when_ DST starts and ends to print the calendar
>     correctly.
>
> I guess that is true, for the sake of the holiday display.
>
> Given a way to check any given time for DST, it would not be too
> terribly hard to binary-search thru the calendar to find the DST start
> and end dates.

This is what it does now, only it only does it for the next year, then
assumes the result applies to every year.

As I said before, I will try making it do this for every year when
needed.

Extracting the information directly from the tz database (which must
contain it, in some format) would require less CPU, but more of my CPU
to figure out how to do it (especially in a system-portable way).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]