summaryrefslogtreecommitdiff
path: root/lisp/calendar
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-08-04 09:57:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-08-04 10:09:25 -0700
commit5f3f3884a0d2a88101d330b82ef5b584cfc02aa6 (patch)
tree1fe0f5f8779f6836748d26ecfc58cee88da8e46e /lisp/calendar
parentf01597a43ea2eac38cfbb829f301c2e6e3bcbe83 (diff)
downloademacs-5f3f3884a0d2a88101d330b82ef5b584cfc02aa6.tar.gz
Improve time function doc
* doc/misc/emacs-mime.texi (time-date): Don’t give parse-iso8601-time-string in the example, as the function is not autoloaded. * lisp/gnus/nndiary.el (nndiary-compute-reminders): No need to call encode-time or use floating point here.
Diffstat (limited to 'lisp/calendar')
-rw-r--r--lisp/calendar/iso8601.el2
-rw-r--r--lisp/calendar/time-date.el4
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/calendar/iso8601.el b/lisp/calendar/iso8601.el
index c69156cbeb6..30352c7e75f 100644
--- a/lisp/calendar/iso8601.el
+++ b/lisp/calendar/iso8601.el
@@ -138,7 +138,7 @@ well as variants like \"2008W32\" (week number) and
date)))
(defun iso8601-parse-date (string)
- "Parse STRING (which should be on ISO 8601 format) and return a time value."
+ "Parse STRING (in ISO 8601 format) and return a decoded time value."
(cond
;; Just a year: [-+]YYYY.
((iso8601--match iso8601--year-match string)
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el
index 5b82b8ab0fa..c0565b3cfb7 100644
--- a/lisp/calendar/time-date.el
+++ b/lisp/calendar/time-date.el
@@ -374,8 +374,8 @@ January 1st being 1."
(defun decoded-time-add (time delta)
"Add DELTA to TIME, both of which are `decoded-time' structures.
-TIME should represent a time, while DELTA should only have
-non-nil integers for the values that should be altered.
+TIME should represent a time, while DELTA should have non-nil
+entries only for the values that should be altered.
For instance, if you want to \"add two months\" to TIME, then
leave all other fields but the month field in DELTA nil, and make