From: Glenn Morris Date: Wed, 2 Sep 2009 06:36:11 +0000 (+0000) Subject: (gnus-float-time): Make TIME optional, defaulting to current-time. X-Git-Tag: emacs-pretest-23.1.90~1515 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/c506adde9f36bae5fd501e58a1e064f810b2be5e?ds=sidebyside (gnus-float-time): Make TIME optional, defaulting to current-time. --- diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 788fa16cb0..fb2cdbce11 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." (and (= (car fdate) (car date)) (> (nth 1 fdate) (nth 1 date)))))) -(defun gnus-float-time (time) - "Convert time value TIME to a floating point number." +(defun gnus-float-time (&optional time) + "Convert time value TIME to a floating point number. +TIME defaults to the current time." (if (featurep 'xemacs) - (time-to-seconds time) + (time-to-seconds (or time (current-time))) (float-time time))) ;;; Keymap macros.