changeset 4667:dbe2da5db2f7

(calendar-time-zone-daylight-rules): Remove special case for Israel. Israel has changed its daylight savings time rules, and we don't know what the current rules are.
author Paul Eggert <eggert@twinsun.com>
date Mon, 06 Sep 1993 22:37:51 +0000
parents 674082454a0c
children 12289fa93455
files lisp/calendar/cal-dst.el
diffstat 1 files changed, 5 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/cal-dst.el	Mon Sep 06 22:15:21 1993 +0000
+++ b/lisp/calendar/cal-dst.el	Mon Sep 06 22:37:51 1993 +0000
@@ -153,21 +153,7 @@
 		      (cons
 		       (list 'calendar-nth-named-day 1 weekday m 'year j)
 		       l)))
-	     l)
-	   ;; Israel is special.
-	   (if (zerop weekday)
-	       (if (< m 7)
-		   (list
-		     '(calendar-gregorian-from-absolute
-		       (calendar-dayname-on-or-before
-			0
-			(calendar-absolute-from-hebrew
-			 (list 1 28 (+ year 3760))))))
-		 (list '(calendar-gregorian-from-absolute
-			 (calendar-dayname-on-or-before
-			  0
-			  (- (calendar-absolute-from-hebrew
-			      (list 7 1 (+ year 3761))) 3))))))))
+	     l)))
 	 (prevday-sec (- -1 utc-diff)) ;; last sec of previous local day
 	 (year (1+ y)))
     ;; Scan through the next few years until only one rule remains.
@@ -310,15 +296,9 @@
 
       '(10 1 year)
 
-For a more complex example, daylight savings time begins in Israel on the
-first Sunday after Passover ends on Nisan 21:
+If it starts on the first Sunday in April, you would set it to
 
-      '(calendar-gregorian-from-absolute
-        (calendar-dayname-on-or-before
-         0
-         (calendar-absolute-from-hebrew (list 1 28 (+ year 3760)))))
-
-because Nisan is the first month in the Hebrew calendar.
+      '(calendar-nth-named-day 1 0 4 year)
 
 If the locale never uses daylight savings time, set this to nil.")
 
@@ -332,13 +312,9 @@
 used to determine the starting date of daylight savings time for the holiday
 list and for correcting times of day in the solar and lunar calculations.
 
-For example, daylight savings time ends in Israel on the Sunday Selichot
-begins:
+For example, if daylight savings time ends on the last Sunday in October:
 
-      '(calendar-gregorian-from-absolute
-        (calendar-dayname-on-or-before
-         0
-         (- (calendar-absolute-from-hebrew (list 7 1 (+ year 3761))) 3)))
+      '(calendar-nth-named-day -1 0 10 year)
 
 If the locale never uses daylight savings time, set this to nil.")