(solar-sunrise-and-sunset): Exchange the two extreme values of day-length.
authorRichard M. Stallman <rms@gnu.org>
Sun, 11 Nov 2001 20:14:47 +0000 (20:14 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 11 Nov 2001 20:14:47 +0000 (20:14 +0000)
lisp/calendar/solar.el

index 2fa0656..0499810 100644 (file)
@@ -316,8 +316,8 @@ degrees to find out if polar regions have 24 hours of sun or only night."
     (if (not (and rise-time set-time))
         (if (or (and (> latitude 0) solar-spring-or-summer-season)
                 (and (< latitude 0) (not solar-spring-or-summer-season)))
-          (setq day-length 24)
-          (setq day-length 0))
+           (setq day-length 0)
+          (setq day-length 24))
         (setq day-length (- set-time rise-time)))
     (list (if rise-time (+ rise-time (/ calendar-time-zone 60.0)) nil)
           (if set-time (+ set-time (/ calendar-time-zone 60.0)) nil)