branch: elpa/projectile
commit cd8bcbcb15be7b76d73969d2c2504100b77eda26
Merge: 2bb7ec28b1 43decc573b
Author: Bozhidar Batsov <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #1735 from eggert/timestamp
Port projectile-time-seconds to future Emacs
---
projectile.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/projectile.el b/projectile.el
index 488df282c7..e67f56daef 100644
--- a/projectile.el
+++ b/projectile.el
@@ -955,8 +955,10 @@ to invalidate."
(defun projectile-time-seconds ()
"Return the number of seconds since the unix epoch."
- (cl-destructuring-bind (high low _usec _psec) (current-time)
- (+ (lsh high 16) low)))
+ (if (fboundp 'time-convert)
+ (time-convert nil 'integer)
+ (cl-destructuring-bind (high low _usec _psec) (current-time)
+ (+ (lsh high 16) low))))
(defun projectile-cache-project (project files)
"Cache PROJECTs FILES.