;;; -*- Mode:Lisp; Readtable:ZL; Package:USER; Base:10; Patch-File:T -*- ;;; Patch file for System version 121.56 ;;; Reason: ;;; really fix the time by putting the ) where it belongs. ;;; Written 13-Apr-87 19:33:14 by naha at site LMI Cambridge ;;; while running on Love from band 2 ;;; with Experimental System 121.55, Experimental Lambda-Diag 15.0, Experimental ZMail 70.2, Experimental KERMIT 32.0, Experimental Unix-Interface 10.0, Experimental Local-File 72.0, Experimental FILE-Server 21.0, Experimental Tape 13.0, microcode 1733, SDU Boot Tape 3.13, SDU ROM 102, 121.35. ; From modified file DJ: L.IO1; TIME.LISP#135 at 13-Apr-87 19:33:14 #10R TIME#: (COMPILER-LET ((*PACKAGE* (PKG-FIND-PACKAGE "TIME"))) (COMPILER::PATCH-SOURCE-FILE "SYS: IO1; TIME  " (defun daylight-savings-time-in-usa-p (seconds minutes hours day month year) (declare (ignore seconds minutes)) ;;; remember, HOURS here is allways in standard time. (cond ((< month 4) nil) ; before April ((> month 10) nil) ; after October ((= month 4) (let ((magic-day (cond ((< year 1987) (last-sunday-in-april year)) ((>= year 1987) (first-sunday-in-april year))))) (cond ((< day magic-day) nil) ((> day magic-day) t) ((>= hours 2) t) (t nil)))) ((= month 10) (let ((magic-day (time:last-sunday-in-october year))) (cond ((< day magic-day) t) ((> day magic-day) nil) ((>= hours 1) nil) (t t)))))) ))