diff options
Diffstat (limited to 'lisp/calendar/time-date.el')
-rw-r--r-- | lisp/calendar/time-date.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index c0565b3cfb7..7505332011b 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el @@ -171,14 +171,14 @@ If DATE lacks timezone information, GMT is assumed." (defalias 'time-to-seconds 'float-time) ;;;###autoload -(defalias 'seconds-to-time 'encode-time) +(defalias 'seconds-to-time 'time-convert) ;;;###autoload (defun days-to-time (days) "Convert DAYS into a time value." - (let ((time (encode-time (* 86400 days)))) + (let ((time (time-convert (* 86400 days)))) ;; Traditionally, this returned a two-element list if DAYS was an integer. - ;; Keep that tradition if encode-time outputs timestamps in list form. + ;; Keep that tradition if time-convert outputs timestamps in list form. (if (and (integerp days) (consp (cdr time))) (setcdr (cdr time) nil)) time)) |