aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-29 14:22:31 +0200
committerLars Ingebrigtsen2019-07-29 14:22:38 +0200
commitfa04c8b87e50a2e2b0d021958f637be8f475d8bc (patch)
tree304b07bc09258970ecf7c4a97fd53e85d4cddfe8 /etc
parent6cfda69d72cb9debefc48d0d95e341d389e7303a (diff)
downloademacs-fa04c8b87e50a2e2b0d021958f637be8f475d8bc.tar.gz
emacs-fa04c8b87e50a2e2b0d021958f637be8f475d8bc.zip
Add an ISO 8601 parsing library
* doc/lispref/os.texi (Time Parsing): Document it. * lisp/calendar/iso8601.el: New file. * test/lisp/calendar/iso8601-tests.el: Test ISO8601 parsing functions.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 2bdbfcb8d08..7c21cc79307 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2056,6 +2056,15 @@ TICKS is an integer and HZ is a positive integer denoting a clock
2056frequency. The old 'encode-time' API is still supported. 2056frequency. The old 'encode-time' API is still supported.
2057 2057
2058+++ 2058+++
2059*** A new package to parse ISO 8601 time, date, durations and
2060intervals has been added. The main function to use is
2061'iso8601-parse', but there's also 'iso8601-parse-date',
2062'iso8601-parse-time', 'iso8601-parse-duration' and
2063'iso8601-parse-interval'. All these functions return decoded time
2064structures, except the final one, which returns three of them (start,
2065end and duration).
2066
2067+++
2059*** 'time-add', 'time-subtract', and 'time-less-p' now accept 2068*** 'time-add', 'time-subtract', and 'time-less-p' now accept
2060infinities and NaNs too, and propagate them or return nil like 2069infinities and NaNs too, and propagate them or return nil like
2061floating-point operators do. 2070floating-point operators do.