emacs/lisp/calc
Mattias Engdegård 0ade20f49f Calc: fix formatting and parsing Unix time (bug#43759)
The number of days from epoch to Jan 1, 1970 that was used in parsing
and formatting Unix time was incorrect.  The previous fix
(in e368697ce3) was incomplete.

Reported by Vincent Belaïche.

* lisp/calc/calc-forms.el (math-unix-epoch): New constant.
(math-format-date-part, math-parse-standard-date, calcFunc-unixtime):
Use math-unix-epoch instead of a constant that is sometimes wrong.
* test/lisp/calc/calc-tests.el (calc-unix-date): New test.
2020-10-02 22:24:54 +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 formatting and parsing Unix time (bug#43759) 2020-10-02 22:24:54 +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