# HG changeset patch # User Glenn Morris # Date 1251873371 0 # Node ID 6a1f7b318ddf085fe9a5ee002677dcd0b3b74f35 # Parent 2fb28585eb6b4296e67d3c8f9fa9c98864f30bdb (gnus-float-time): Make TIME optional, defaulting to current-time. diff -r 2fb28585eb6b -r 6a1f7b318ddf lisp/gnus/gnus-util.el --- 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.