aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-09-02 06:36:11 +0000
committerGlenn Morris2009-09-02 06:36:11 +0000
commitc506adde9f36bae5fd501e58a1e064f810b2be5e (patch)
tree896ab7a486131220e5aac0eef2784a5cf44b69d2
parent9693d3c4a3f735395912387902debd22eb10e4b9 (diff)
downloademacs-c506adde9f36bae5fd501e58a1e064f810b2be5e.tar.gz
emacs-c506adde9f36bae5fd501e58a1e064f810b2be5e.zip
(gnus-float-time): Make TIME optional, defaulting to current-time.
-rw-r--r--lisp/gnus/gnus-util.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 788fa16cb0d..fb2cdbce118 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -285,10 +285,11 @@ Symbols are also allowed; their print names are used instead."
285 (and (= (car fdate) (car date)) 285 (and (= (car fdate) (car date))
286 (> (nth 1 fdate) (nth 1 date)))))) 286 (> (nth 1 fdate) (nth 1 date))))))
287 287
288(defun gnus-float-time (time) 288(defun gnus-float-time (&optional time)
289 "Convert time value TIME to a floating point number." 289 "Convert time value TIME to a floating point number.
290TIME defaults to the current time."
290 (if (featurep 'xemacs) 291 (if (featurep 'xemacs)
291 (time-to-seconds time) 292 (time-to-seconds (or time (current-time)))
292 (float-time time))) 293 (float-time time)))
293 294
294;;; Keymap macros. 295;;; Keymap macros.