summaryrefslogtreecommitdiff
path: root/lisp/calendar/time-date.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-08-01 00:38:33 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-08-01 01:17:16 -0700
commita51863f73d914dbabbadb396cda2c9d360866277 (patch)
tree16b2024853ac54e9aaa1a825de958d9501a1055c /lisp/calendar/time-date.el
parentd634cb09547eb5ffba105b6c90410fd843bf029d (diff)
downloademacs-a51863f73d914dbabbadb396cda2c9d360866277.tar.gz
Simplify a few timestamps
* lisp/calendar/time-date.el (safe-date-to-time): * lisp/calendar/timeclock.el (timeclock-generate-report): * lisp/epg.el (epg--start): * lisp/gnus/gnus-demon.el (gnus-demon-nntp-close-connection): * lisp/gnus/gnus-util.el (gnus-date-get-time): * lisp/gnus/nnheader.el (nnheader-last-message-time): * lisp/gnus/nnrss.el (nnrss-request-expire-articles): * lisp/vc/ediff-util.el (ediff-command-begin-time) (ediff-calc-command-time, ediff-profile): Prefer an integer like 0 to a timestamp list like (0 0) where either will do.
Diffstat (limited to 'lisp/calendar/time-date.el')
-rw-r--r--lisp/calendar/time-date.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el
index d1afd8ce95a..7c99d05dc3f 100644
--- a/lisp/calendar/time-date.el
+++ b/lisp/calendar/time-date.el
@@ -256,10 +256,10 @@ Returns a floating point number."
;;;###autoload
(defun safe-date-to-time (date)
"Parse a string DATE that represents a date-time and return a time value.
-If DATE is malformed, return a time value of zeros."
+If DATE is malformed, return a time value of zero."
(condition-case ()
(date-to-time date)
- (error '(0 0))))
+ (error 0)))
;;;###autoload