diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-29 14:22:31 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-29 14:22:38 +0200 |
commit | fa04c8b87e50a2e2b0d021958f637be8f475d8bc (patch) | |
tree | 304b07bc09258970ecf7c4a97fd53e85d4cddfe8 /etc | |
parent | 6cfda69d72cb9debefc48d0d95e341d389e7303a (diff) | |
download | emacs-fa04c8b87e50a2e2b0d021958f637be8f475d8bc.tar.gz |
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/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -2056,6 +2056,15 @@ TICKS is an integer and HZ is a positive integer denoting a clock frequency. The old 'encode-time' API is still supported. +++ +*** A new package to parse ISO 8601 time, date, durations and +intervals has been added. The main function to use is +'iso8601-parse', but there's also 'iso8601-parse-date', +'iso8601-parse-time', 'iso8601-parse-duration' and +'iso8601-parse-interval'. All these functions return decoded time +structures, except the final one, which returns three of them (start, +end and duration). + ++++ *** 'time-add', 'time-subtract', and 'time-less-p' now accept infinities and NaNs too, and propagate them or return nil like floating-point operators do. |