diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-02-08 10:33:13 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-02-08 10:33:13 +0200 |
commit | b8c70172f354ad57bb6c547d59f585d751f632ed (patch) | |
tree | 3309e806f01e9134ec6ffe3f4cf8e9d73dd15c19 /lisp/calendar/time-date.el | |
parent | 46095a7dcb5fd6e0b79582bd14aa87f2d04f4a65 (diff) | |
download | emacs-b8c70172f354ad57bb6c547d59f585d751f632ed.tar.gz |
Improve documentation of 'date-to-time' and 'parse-time-string'
* doc/lispref/os.texi (Time Parsing): Document
'parse-time-string', and refer to it for the description of
the argument of 'date-to-time'.
* lisp/calendar/time-date.el (date-to-time): Refer in the doc
string to 'parse-time-string' for more information about the
format of the DATE argument. (Bug#34303)
Diffstat (limited to 'lisp/calendar/time-date.el')
-rw-r--r-- | lisp/calendar/time-date.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index 6988e65dddc..afd5c091b40 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el @@ -148,6 +148,7 @@ it is assumed that PICO was omitted and should be treated as zero." ;; values. timezone-make-date-arpa-standard should help. (defun date-to-time (date) "Parse a string DATE that represents a date-time and return a time value. +DATE should be in one of the forms recognized by `parse-time-string'. If DATE lacks timezone information, GMT is assumed." (condition-case err (apply 'encode-time (parse-time-string date)) |