Function: days-to-time
days-to-time is an autoloaded and byte-compiled function defined in
time-date.el.gz.
Signature
(days-to-time DAYS)
Documentation
Convert DAYS into a time value.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/time-date.el.gz
;;;###autoload
(defun days-to-time (days)
"Convert DAYS into a time value."
(let ((time (time-convert (* 86400 days))))
;; Traditionally, this returned a two-element list if DAYS was an integer.
;; Keep that tradition if time-convert outputs timestamps in list form.
(if (and (integerp days) (consp (cdr time)))
(setcdr (cdr time) nil))
time))