• Paul Eggert's avatar
    Avoid some excess precision in time arithmetic · 396ed88a
    Paul Eggert authored
    * 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.
    396ed88a
time-date.el 19.1 KB