summaryrefslogtreecommitdiff
path: root/lisp/calendar/solar.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-05-01 20:18:39 +0000
committerRichard M. Stallman <rms@gnu.org>1994-05-01 20:18:39 +0000
commitec4dfb6bfbc8bd9e9adc32bac2a4cb598a99b827 (patch)
treeb5843120246a64a1545eced853636516f36dda35 /lisp/calendar/solar.el
parent82a2fe6969664879c2596ebe4166d0e5c1ac0013 (diff)
downloademacs-ec4dfb6bfbc8bd9e9adc32bac2a4cb598a99b827.tar.gz
(sunrise-sunset): Undo previous change.
Diffstat (limited to 'lisp/calendar/solar.el')
-rw-r--r--lisp/calendar/solar.el16
1 files changed, 7 insertions, 9 deletions
diff --git a/lisp/calendar/solar.el b/lisp/calendar/solar.el
index 723980a6690..ce0570214a7 100644
--- a/lisp/calendar/solar.el
+++ b/lisp/calendar/solar.el
@@ -392,10 +392,10 @@ several minutes."
;;;###autoload
(defun sunrise-sunset (&optional arg)
"Local time of sunrise and sunset for today. Accurate to +/- 2 minutes.
-If called with an optional prefix argument, prompts for date.
+If called with an optional prefix argument, prompt for date.
-If called with an optional double prefix argument, prompts for longitude,
-latitude, time zone, and date.
+If called with an optional double prefix argument, prompt for longitude,
+latitude, time zone, and date, and always use standard time.
This function is suitable for execution in a .emacs file."
(interactive "p")
@@ -429,12 +429,10 @@ This function is suitable for execution in a .emacs file."
((< calendar-time-zone 0)
(format "UTC%dmin" calendar-time-zone))
(t (format "UTC+%dmin" calendar-time-zone)))))
-;; Use outer context values always, unless you're going to prompt for
-;; the values to use. PKH
-;; (calendar-daylight-savings-starts
-;; (if (< arg 16) calendar-daylight-savings-starts))
-;; (calendar-daylight-savings-ends
-;; (if (< arg 16) calendar-daylight-savings-ends))
+ (calendar-daylight-savings-starts
+ (if (< arg 16) calendar-daylight-savings-starts))
+ (calendar-daylight-savings-ends
+ (if (< arg 16) calendar-daylight-savings-ends))
(date (if (< arg 4) (calendar-current-date) (calendar-read-date)))
(date-string (calendar-date-string date t))
(time-string (solar-sunrise-sunset date))