Function: marginalia--time

marginalia--time is a byte-compiled function defined in marginalia.el.

Signature

(marginalia--time TIME)

Documentation

Format file age TIME, suitably for use in annotations.

Source Code

;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia--time (time)
  "Format file age TIME, suitably for use in annotations."
  (propertize
   (if (< (float-time (time-since time)) marginalia-max-relative-age)
       (marginalia--time-relative time)
     (marginalia--time-absolute time))
   'help-echo (format-time-string "%Y-%m-%d %T" time)))