summaryrefslogtreecommitdiff
path: root/lisp/calendar/time-date.el
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-08-06 10:21:52 +0800
committerPo Lu <luangruo@yahoo.com>2022-08-06 10:21:52 +0800
commitef0546ffcdab57fa947efb2a255adec4f61efacd (patch)
tree386439319b6e6e07f10ab794c1c92b8a7e756700 /lisp/calendar/time-date.el
parent32ab6d71058a35f784c644f5267ed0c72aeefcda (diff)
downloademacs-ef0546ffcdab57fa947efb2a255adec4f61efacd.tar.gz
Fix signature of `seconds-to-time'
* lisp/calendar/time-date.el (seconds-to-time): Fix after change to time-convert.
Diffstat (limited to 'lisp/calendar/time-date.el')
-rw-r--r--lisp/calendar/time-date.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el
index b80b47a33fa..7e911d814dc 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)