# HG changeset patch # User Jay Belanger # Date 1182524434 0 # Node ID 50d8c838c50c753913ed3b68e68fc4e419a84814 # Parent 1ff1ce0627d869e73e83961b9d164f3b194352c9 (math-format-date-part,calc-parse-standard-date,calcFunc-julian): Fix incorrect number used in calculations. diff -r 1ff1ce0627d8 -r 50d8c838c50c lisp/calc/calc-forms.el --- a/lisp/calc/calc-forms.el Fri Jun 22 09:05:55 2007 +0000 +++ b/lisp/calc/calc-forms.el Fri Jun 22 15:00:34 2007 +0000 @@ -561,7 +561,7 @@ (math-format-number (math-add math-fd-date (eval-when-compile - (math-read-number-simple "1.7214235"))))) + (math-read-number-simple "1721423.5"))))) ((eq x 'j) (math-format-number (math-add (math-floor math-fd-date) @@ -944,7 +944,7 @@ (eval-when-compile (math-read-number-simple "1721424")) (eval-when-compile - (math-read-number-simple "1.7214235"))))) + (math-read-number-simple "1721423.5"))))) hour (or (nth 3 num) hour) minute (or (nth 4 num) minute) second (or (nth 5 num) second) @@ -1157,7 +1157,7 @@ (math-read-number-simple "1721424"))) (setq date (math-sub date (eval-when-compile - (math-read-number-simple "1.7214235")))) + (math-read-number-simple "1721423.5")))) (math-sub date (math-div (calcFunc-tzone zone date) '(float 864 2))))) (if (eq (car date) 'date) @@ -1166,7 +1166,7 @@ (math-read-number-simple "1721424")) (math-add (eval-when-compile - (math-read-number-simple "1.7214235")) + (math-read-number-simple "1721423.5")) (math-div (calcFunc-tzone zone date) '(float 864 2))))) (math-reject-arg date 'datep))))