mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(gnus-float-time): Make TIME optional, defaulting to current-time.
This commit is contained in:
parent
9693d3c4a3
commit
c506adde9f
1 changed files with 4 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue