emacs/lisp/calc
Mattias Engdegård 4cb16b6f42 Calc: fix business days calculation (bug43677)
The calculation of business days was broken in 2012 (probably
310e60d945 or thereabouts) when the date representation changed
epoch so that Jan 1, 1 AD became day number 1 instead of 0.  Repair
this, along with an unrelated bug that prevented arbitrary holiday
weekdays from working.

Reported by Aaron Zeng.

* lisp/calc/calc-forms.el (math-to-business-day)
(math-from-business-day): Correct calculation of weekdays using Calc's
current (Rata Die) chronology.  Modify loop condition to cope with odd
sets of holiday weekdays.
* test/lisp/calc/calc-tests.el (calc-business-days): New test.
2020-10-02 10:35:52 +02:00
..
calc-aent.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-alg.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-arith.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-bin.el Use `format-prompt' when prompting with default values 2020-09-06 16:56:54 +02:00
calc-comb.el Calc: fix binomial coefficients for negative arguments (bug#16999) 2020-09-14 11:19:22 +02:00
calc-cplx.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-embed.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-ext.el Calc: fix autoload errors (bug#40800) 2020-04-24 20:19:37 +02:00
calc-fin.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-forms.el Calc: fix business days calculation (bug43677) 2020-10-02 10:35:52 +02:00
calc-frac.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-funcs.el Simplify big integer constants in Calc 2020-09-11 13:02:59 +02:00
calc-graph.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-help.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-incom.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-keypd.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-lang.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-macs.el Calc: don't treat nil as an integer (bug#40155) 2020-03-27 18:11:18 +01:00
calc-map.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-math.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-menu.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-misc.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-mode.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-mtx.el Calc: fix LU decomposition for non-numeric matrices (bug#41223) 2020-05-14 10:28:51 +02:00
calc-nlfit.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-poly.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-prog.el Calc: fix autoload errors (bug#40800) 2020-04-24 20:19:37 +02:00
calc-rewr.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-rules.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-sel.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-stat.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-store.el Use `format-prompt' when prompting with default values 2020-09-06 16:56:54 +02:00
calc-stuff.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-trail.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-undo.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-units.el ; Prefer https to http in many URLs 2020-10-01 15:28:15 +02:00
calc-vec.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-yank.el Slight cleanup in calc-yank 2020-08-11 21:04:12 +02:00
calc.el Simplify big integer constants in Calc 2020-09-11 13:02:59 +02:00
calcalg2.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calcalg3.el ; Fix typos in format-prompt 2020-09-10 21:58:26 +03:00
calccomp.el Use a square root character in calc displays 2020-09-15 18:03:50 +02:00
calcsel2.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00