aboutsummaryrefslogtreecommitdiff
path: root/sx-time.el
diff options
context:
space:
mode:
Diffstat (limited to 'sx-time.el')
-rw-r--r--sx-time.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/sx-time.el b/sx-time.el
index 3cf26b9..1d1267b 100644
--- a/sx-time.el
+++ b/sx-time.el
@@ -1,4 +1,4 @@
-;;; sx-time.el --- time -*- lexical-binding: t -*-
+;;; sx-time.el --- time -*- lexical-binding: t; -*-
;; Copyright (C) 2014 Sean Allred
@@ -43,7 +43,7 @@
(defun sx-time-since (time)
"Convert the time interval since TIME (in seconds) to a short string."
- (let ((delay (- (time-to-seconds) time)))
+ (let ((delay (- (float-time) time)))
(concat
(if (> 0 delay) "-" "")
(if (= 0 delay) "0s"