1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-04 04:52:10 -08:00
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
calc-alg.el
calc-arith.el
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
calc-embed.el
calc-ext.el Calc: fix autoload errors (bug#40800) 2020-04-24 20:19:37 +02:00
calc-fin.el
calc-forms.el Calc: fix formatting and parsing Unix time (bug#43759) 2020-10-02 22:24:54 +02:00
calc-frac.el
calc-funcs.el Simplify big integer constants in Calc 2020-09-11 13:02:59 +02:00
calc-graph.el
calc-help.el
calc-incom.el
calc-keypd.el
calc-lang.el
calc-macs.el
calc-map.el
calc-math.el
calc-menu.el
calc-misc.el
calc-mode.el
calc-mtx.el Calc: fix LU decomposition for non-numeric matrices (bug#41223) 2020-05-14 10:28:51 +02:00
calc-nlfit.el
calc-poly.el
calc-prog.el Calc: fix autoload errors (bug#40800) 2020-04-24 20:19:37 +02:00
calc-rewr.el
calc-rules.el
calc-sel.el
calc-stat.el
calc-store.el Use `format-prompt' when prompting with default values 2020-09-06 16:56:54 +02:00
calc-stuff.el
calc-trail.el
calc-undo.el
calc-units.el ; Prefer https to http in many URLs 2020-10-01 15:28:15 +02:00
calc-vec.el
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
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