diff options
| author | Paul Eggert | 2019-08-20 17:34:03 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-08-20 17:36:46 -0700 |
| commit | 396ed88a50fba95cd3b989965defef0130a42c42 (patch) | |
| tree | 95b03c537acf8d65b6d894a283eccf9f1d31a1e8 /doc | |
| parent | 7e2090ee80c9099ee953392444e1d73d10e973d4 (diff) | |
| download | emacs-396ed88a50fba95cd3b989965defef0130a42c42.tar.gz emacs-396ed88a50fba95cd3b989965defef0130a42c42.zip | |
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.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/emacs-mime.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/misc/emacs-mime.texi b/doc/misc/emacs-mime.texi index eb829b06124..131a358ba59 100644 --- a/doc/misc/emacs-mime.texi +++ b/doc/misc/emacs-mime.texi | |||
| @@ -1568,7 +1568,7 @@ Here's a bunch of time/date/second/day examples: | |||
| 1568 | 1568 | ||
| 1569 | (time-subtract '(905595714000000 . 1000000) | 1569 | (time-subtract '(905595714000000 . 1000000) |
| 1570 | '(905595593000000000 . 1000000000)) | 1570 | '(905595593000000000 . 1000000000)) |
| 1571 | @result{} (121000000000 . 1000000000) | 1571 | @result{} (121000000 . 1000000) |
| 1572 | 1572 | ||
| 1573 | (days-between "Sat Sep 12 12:21:54 1998 +0200" | 1573 | (days-between "Sat Sep 12 12:21:54 1998 +0200" |
| 1574 | "Sat Sep 07 12:21:54 1998 +0200") | 1574 | "Sat Sep 07 12:21:54 1998 +0200") |