]> git.eshelyaron.com Git - emacs.git/commit
Subtracting “now” from “now” should yield zero
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Aug 2019 01:08:23 +0000 (18:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Aug 2019 01:12:24 +0000 (18:12 -0700)
commitf6dd46cba8b144cf1653f8314a4b629beee11be3
tree3ff60f25fee220b79711492eb11892e65518272e
parentf9fd12a30b3d94eb48f7b309907d136d7b2682ac
Subtracting “now” from “now” should yield zero

* src/timefns.c (time_arith): Arrange for (time-subtract nil
nil) to yield 0, to be consistent with (time-equal-p nil nil).
* test/lisp/calendar/time-date-tests.el (test-time-since): New test.
src/timefns.c
test/lisp/calendar/time-date-tests.el