From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.devel Subject: US daylight savings for 2007 Date: Thu, 21 Dec 2006 09:04:57 +1100 Message-ID: <877iwm6x6e.fsf@zip.com.au> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1166652335 32496 80.91.229.10 (20 Dec 2006 22:05:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Dec 2006 22:05:35 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 20 23:05:32 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gx9Z1-0007Uj-8P for ged-emacs-devel@m.gmane.org; Wed, 20 Dec 2006 23:05:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gx9Z0-0008EP-Kk for ged-emacs-devel@m.gmane.org; Wed, 20 Dec 2006 17:05:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gx9Yl-0008CK-7Q for emacs-devel@gnu.org; Wed, 20 Dec 2006 17:05:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gx9Yi-000880-29 for emacs-devel@gnu.org; Wed, 20 Dec 2006 17:05:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gx9Yh-00087Z-LQ for emacs-devel@gnu.org; Wed, 20 Dec 2006 17:05:07 -0500 Original-Received: from [61.8.2.215] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gx9Yf-00051B-Hb for emacs-devel@gnu.org; Wed, 20 Dec 2006 17:05:06 -0500 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 2FCEE5A0EAF for ; Thu, 21 Dec 2006 09:04:59 +1100 (EST) Original-Received: from localhost (ppp2480.dyn.pacific.net.au [61.8.36.128]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id DCD8F27409 for ; Thu, 21 Dec 2006 09:04:57 +1100 (EST) Original-Received: from gg by localhost with local (Exim 4.63) (envelope-from ) id 1Gx9YY-0001pQ-4B for emacs-devel@gnu.org; Thu, 21 Dec 2006 09:04:58 +1100 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64027 Archived-At: --=-=-= I noticed a couple of spots in the code and manual with US daylight savings rule as first sunday in April, which I believe is changing for 2007. 2006-12-20 Kevin Ryde * calendar/cal-dst.el (calendar-dst-starts): Default to second Sunday in March. (calendar-dst-ends): Default to first Sunday in November. These are new US rules commencing 2007, per tzdata ftp://elsie.nci.nih.gov/pub/. and in the manual: * calendar.texi (Holidays): US daylight savings begins second Sunday in March for 2007 onwards. (Daylight Savings): Show new US default daylight savings rules, 2nd Sun in Mar to 1st Sun in Nov, now in cal-dst.el. I'm not sure why daylight savings is mentioned in the "Holidays" node. What it says about always using only the present definition isn't true any more is it? I'd be tempted to reduce the last paragraph to just its first sentence. The dates used by Emacs for holidays are based on _current practice_, not historical fact. Unless someone can think of a holiday where the rule has varied historically. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=cal-dst.el.us-daylight-2007.diff *** cal-dst.el.~1.26.~ 2006-12-15 07:15:51.000000000 +1100 --- cal-dst.el 2006-12-20 15:55:22.000000000 +1100 *************** *** 346,352 **** (nth 4 calendar-current-time-zone-cache)))) (if expr (eval expr))) (and (not (zerop calendar-daylight-time-offset)) ! (calendar-nth-named-day 1 0 4 year)))) (defun calendar-dst-ends (year) "Return the date of YEAR on which Daylight Saving Time ends. --- 346,352 ---- (nth 4 calendar-current-time-zone-cache)))) (if expr (eval expr))) (and (not (zerop calendar-daylight-time-offset)) ! (calendar-nth-named-day 2 0 3 year)))) (defun calendar-dst-ends (year) "Return the date of YEAR on which Daylight Saving Time ends. *************** *** 356,362 **** (nth 5 calendar-current-time-zone-cache)))) (if expr (eval expr))) (and (not (zerop calendar-daylight-time-offset)) ! (calendar-nth-named-day -1 0 10 year)))) ;;;###autoload --- 356,362 ---- (nth 5 calendar-current-time-zone-cache)))) (if expr (eval expr))) (and (not (zerop calendar-daylight-time-offset)) ! (calendar-nth-named-day 1 0 11 year)))) ;;;###autoload --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=calendar.texi.us-daylight-2007.diff *** calendar.texi.~1.50.~ 2006-12-15 07:16:58.000000000 +1100 --- calendar.texi 2006-12-20 16:01:19.000000000 +1100 *************** *** 530,536 **** 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. --- 530,536 ---- 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 second Sunday in March. 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. *************** *** 1593,1606 **** The values for Cambridge, Massachusetts are as follows: @example ! (calendar-nth-named-day 1 0 4 year) ! (calendar-nth-named-day -1 0 10 year) @end example @noindent ! That is, the first 0th day (Sunday) of the fourth month (April) in ! the year specified by @code{year}, and the last Sunday of the tenth month ! (October) of that year. If daylight savings time were changed to start on October 1, you would set @code{calendar-daylight-savings-starts} to this: --- 1593,1606 ---- The values for Cambridge, Massachusetts are as follows: @example ! (calendar-nth-named-day 2 0 3 year) ! (calendar-nth-named-day 1 0 11 year) @end example @noindent ! That is, the second 0th day (Sunday) of the third month (March) in ! the year specified by @code{year}, and the first Sunday of the eleventh month ! (November) of that year. If daylight savings time were changed to start on October 1, you would set @code{calendar-daylight-savings-starts} to this: --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--