summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-07-08 04:43:17 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-07-08 04:43:17 +0200
commitbabd5b8b09b928423e15d827dc1d1abcf70036cc (patch)
tree106cb01897a878c05f03325a6e17eb75c93e8c51
parenta89c9a1b4d08b801ce5dee8dddfce2b684e182e6 (diff)
downloademacs-babd5b8b09b928423e15d827dc1d1abcf70036cc.tar.gz
Mention the ISO 8601 functions
-rw-r--r--doc/lispref/os.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index fef954eb7a3..28bffffa52a 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -1568,6 +1568,16 @@ ISO 8601 string, like ``Fri, 25 Mar 2016 16:24:56 +0100'' or
less well-formed time strings as well.
@end defun
+@vindex ISO 8601 date/time strings
+@defun iso8601-parse string
+For a more strict function (that will error out upon invalid input),
+this function can be used instead. It's able to parse all variants of
+the ISO 8601 standard, including things like ``1998W45-3'' (week
+number) and ``1998-245'' (ordinal day number). To parse durations,
+there's @code{iso8601-parse-duration}, and to parse intervals, there's
+@code{iso8601-parse-interval}.
+@end defun
+
@defun format-time-string format-string &optional time zone
This function converts @var{time} (or the current time, if