diff options
| author | Lars Ingebrigtsen | 2019-07-29 14:22:31 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-29 14:22:38 +0200 |
| commit | fa04c8b87e50a2e2b0d021958f637be8f475d8bc (patch) | |
| tree | 304b07bc09258970ecf7c4a97fd53e85d4cddfe8 /etc | |
| parent | 6cfda69d72cb9debefc48d0d95e341d389e7303a (diff) | |
| download | emacs-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/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 | |||
| 2056 | frequency. The old 'encode-time' API is still supported. | 2056 | frequency. The old 'encode-time' API is still supported. |
| 2057 | 2057 | ||
| 2058 | +++ | 2058 | +++ |
| 2059 | *** A new package to parse ISO 8601 time, date, durations and | ||
| 2060 | intervals 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 | ||
| 2064 | structures, except the final one, which returns three of them (start, | ||
| 2065 | end 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 |
| 2060 | infinities and NaNs too, and propagate them or return nil like | 2069 | infinities and NaNs too, and propagate them or return nil like |
| 2061 | floating-point operators do. | 2070 | floating-point operators do. |