summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/lisp-tests.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2019-07-30 17:33:19 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2019-08-06 13:59:28 +0200
commit4ce9c6d0b58bd77bc811d6c1c5caf955a5a0be2f (patch)
treec232b8d99716d4d2c95363f09f27f5093067c63c /test/lisp/emacs-lisp/lisp-tests.el
parentc676444a43e4634c1f98ec286b5bd9e46b23216b (diff)
downloademacs-4ce9c6d0b58bd77bc811d6c1c5caf955a5a0be2f.tar.gz
Fix various Calc date conversions (bug#36822)
* lisp/calc/calc-forms.el (math-absolute-from-gregorian-dt): Rewrite in a way that I understand, and that actually seems to work. (math-absolute-from-julian-dt): Use Julian, not Gregorian, leap year rules for counting days within a year. (math-julian-date-beginning, math-julian-date-beginning-int): Change constants to be consistent with their doc strings and the code: use Rata Die epoch at Dec 31, 1 BC Gregorian proleptic, not Julian. * doc/misc/calc.texi (Date Forms): Correct difference between Julian Day and Rata Die. * test/lisp/calc/calc-tests.el (calc-test-calendar): New test.
Diffstat (limited to 'test/lisp/emacs-lisp/lisp-tests.el')
0 files changed, 0 insertions, 0 deletions