]> git.eshelyaron.com Git - emacs.git/commit
Avoid some excess precision in time arithmetic
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Aug 2019 00:34:03 +0000 (17:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Aug 2019 00:36:46 +0000 (17:36 -0700)
commit396ed88a50fba95cd3b989965defef0130a42c42
tree95b03c537acf8d65b6d894a283eccf9f1d31a1e8
parent7e2090ee80c9099ee953392444e1d73d10e973d4
Avoid some excess precision in time arithmetic

* doc/misc/emacs-mime.texi (time-date):
Adjust example to match new behavior.
* etc/NEWS: Mention this.
* lisp/calendar/time-date.el (decoded-time-add)
(decoded-time--alter-second):
Don’t lose underestimate precision of seconds component.
* src/bignum.c (mpz): Grow by 1.
* src/timefns.c (trillion_factor): New function.
(timeform_sub_ps_p): Remove.
(time_arith): Avoid unnecessarily-large hz, by reducing the hz
to a value no worse than the worse hz of the two arguments.
The result is always exact unless an error is signaled.
* test/src/timefns-tests.el (timefns-tests--decode-time):
New function.
(format-time-string-with-zone): Test (decode-time LOOK ZONE t)
resolution as well as its numeric value.
doc/misc/emacs-mime.texi
etc/NEWS
lisp/calendar/time-date.el
src/bignum.c
src/bignum.h
src/timefns.c
test/src/timefns-tests.el