Mercurial > emacs
changeset 47629:392820ae24ce
(solar-equinoxes-solstices): Use time properly adjusted for DST in the result.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 26 Sep 2002 21:57:53 +0000 |
parents | e44b96f09893 |
children | e437df73c5bd |
files | lisp/calendar/solar.el |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calendar/solar.el Thu Sep 26 21:57:17 2002 +0000 +++ b/lisp/calendar/solar.el Thu Sep 26 21:57:53 2002 +0000 @@ -1065,9 +1065,10 @@ (d1 (list (car d0) (floor (car (cdr d0))) (car (cdr (cdr d0))))) (h0 (* 24 (- (car (cdr d0)) (floor (car (cdr d0)))))) (adj (dst-adjust-time d1 h0)) - (d (list (car d1) (+ (car (cdr d1)) - (/ (car (cdr adj)) 24.0)) - (car (cdr (cdr d1))))) + (d (list (car (car adj)) + (+ (car (cdr (car adj)) ) + (/ (car (cdr adj)) 24.0)) + (car (cdr (cdr (car adj)))))) ; The following is nearly as accurate, but not quite: ;(d0 (solar-date-next-longitude ; (calendar-astro-from-absolute