Function: seconds-to-string
seconds-to-string is an autoloaded and byte-compiled function defined
in time-date.el.gz.
Signature
(seconds-to-string DELAY)
Documentation
Convert the time interval in seconds to a short string.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/time-date.el.gz
;;;###autoload
(defun seconds-to-string (delay)
;; FIXME: There's a similar (tho fancier) function in mastodon.el!
"Convert the time interval in seconds to a short string."
(cond ((> 0 delay) (concat "-" (seconds-to-string (- delay))))
((= 0 delay) "0s")
(t (let ((sts seconds-to-string) here)
(while (and (car (setq here (pop sts)))
(<= (car here) delay)))
(concat (format "%.2f" (/ delay (car (cddr here)))) (cadr here))))))