[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master ef0546ffcd 2/3: Fix signature of `seconds-to-time'
From: |
Po Lu |
Subject: |
master ef0546ffcd 2/3: Fix signature of `seconds-to-time' |
Date: |
Fri, 5 Aug 2022 22:23:10 -0400 (EDT) |
branch: master
commit ef0546ffcdab57fa947efb2a255adec4f61efacd
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix signature of `seconds-to-time'
* lisp/calendar/time-date.el (seconds-to-time): Fix after change
to time-convert.
---
lisp/calendar/time-date.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el
index b80b47a33f..7e911d814d 100644
--- a/lisp/calendar/time-date.el
+++ b/lisp/calendar/time-date.el
@@ -174,7 +174,10 @@ If DATE lacks timezone information, GMT is assumed."
(defalias 'time-to-seconds 'float-time)
;;;###autoload
-(defalias 'seconds-to-time 'time-convert)
+(defun seconds-to-time (seconds &rest form)
+ "Convert SECONDS to a proper time, like `current-time' would.
+FORM means the same as in `time-convert'."
+ (time-convert seconds form))
;;;###autoload
(defun days-to-time (days)