unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: does Calendar understand DST rules for past years?
Date: Thu, 21 Dec 2006 13:06:47 -0500	[thread overview]
Message-ID: <E1GxSJb-0006He-TM@fencepost.gnu.org> (raw)

I asked Glenn Morris to look at this, but since he is away for a couple
of weeks, I ask if anyone else can figure out what is right here.

man/calendar.el says

      The dates used by Emacs for holidays are based on @emph{current
    practice}, not historical fact.  Historically, for instance, the start
    of daylight savings time and even its existence have varied from year to
    year, but present United States law mandates that daylight savings time
    begins on the first Sunday in April.  When the daylight savings rules
    are set up for the United States, Emacs always uses the present
    definition, even though it is wrong for some prior years.

but the code seems to test calendar-dst-check-each-year-flag, which is
normally true.  I do not understand the code which that calls; it
needs a lot more comments.  Can you please add comments?  But I can't
see any sense in checking each year unless there is a facility for
recording the changes in rules between years.  In that case, the drawback
which is documented is not reallky true.

             reply	other threads:[~2006-12-21 18:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-21 18:06 Richard Stallman [this message]
2006-12-25  0:07 ` does Calendar understand DST rules for past years? Glenn Morris
2006-12-25 16:53   ` Richard Stallman
2006-12-25 23:29     ` Kevin Ryde
2006-12-26 17:22       ` Richard Stallman
2006-12-26 22:37     ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GxSJb-0006He-TM@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).