Commit 092c4936 authored by Jay Belanger's avatar Jay Belanger
Browse files

(math-format-date-part,calc-parse-standard-date,calcFunc-julian):

Fix incorrect number used in calculations.
parent 512eb161
2007-06-22 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc-forms.el (math-format-date-part)
(calc-parse-standard-date,calcFunc-julian): Fix incorrect number
used in calculations.
2007-06-22 Thien-Thi Nguyen <ttn@gnuvola.org>
* simple.el (next-error-recenter): New defcustom.
......
......@@ -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))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment