Mercurial > emacs
changeset 104804:6a1f7b318ddf
(gnus-float-time): Make TIME optional, defaulting to current-time.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 02 Sep 2009 06:36:11 +0000 |
parents | 2fb28585eb6b |
children | 6f8c7d01dcef |
files | lisp/gnus/gnus-util.el |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/gnus/gnus-util.el Wed Sep 02 03:29:49 2009 +0000 +++ b/lisp/gnus/gnus-util.el Wed Sep 02 06:36:11 2009 +0000 @@ -285,10 +285,11 @@ (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.