Function: eca-rewrite--time->presentable-time

eca-rewrite--time->presentable-time is a natively compiled function defined in eca-rewrite.el.

Signature

(eca-rewrite--time->presentable-time MS)

Documentation

Return a presentable time string for MS.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-rewrite.el
(defun eca-rewrite--time->presentable-time (ms)
  "Return a presentable time string for MS."
  (let ((secs (/ ms 1000)))
    (if (< secs 60)
        (format "%ds" secs)
      (let ((mins (/ secs 60))
            (rem  (% secs 60)))
        (if (zerop rem)
            (format "%dm" mins)
          (format "%dm %ds" mins rem))))))