]> code.delx.au - gnu-emacs/blobdiff - lisp/calendar/timeclock.el
Merge from emacs-23
[gnu-emacs] / lisp / calendar / timeclock.el
index ddc0cbe8539efda00bf5652fcbd0933745e89cb1..f389e1ccab366723ad098fb361dd600f5616f0c1 100644 (file)
@@ -543,11 +543,8 @@ non-nil, the amount returned will be relative to past time worked."
        (message "%s" string)
       string)))
 
-(defsubst timeclock-time-to-seconds (time)
-  "Convert TIME to a floating point number."
-  (+ (* (car time) 65536.0)
-     (cadr time)
-     (/ (or (nth 2 time) 0) 1000000.0)))
+(defalias 'timeclock-time-to-seconds (if (fboundp 'float-time) 'float-time
+                                      'time-to-seconds))
 
 (defsubst timeclock-seconds-to-time (seconds)
   "Convert SECONDS (a floating point number) to an Emacs time structure."
@@ -1419,5 +1416,4 @@ HTML-P is non-nil, HTML markup is added."
 (if (file-readable-p timeclock-file)
     (timeclock-reread-log))
 
-;; arch-tag: a0be3377-deb6-44ec-b9a2-a7be28436a40
 ;;; timeclock.el ends here