Function: f-modification-time

f-modification-time is a byte-compiled function defined in f.el.

Signature

(f-modification-time PATH &optional TIMESTAMP-P)

Documentation

Return the last modification time of PATH.

The modification time (mtime) of PATH in the same format as current-time. For details on TIMESTAMP-P and the format of the returned value, see f--get-time.

Source Code

;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
(defun f-modification-time (path &optional timestamp-p)
  "Return the last modification time of PATH.
The modification time (mtime) of PATH in the same format as
`current-time'.  For details on TIMESTAMP-P and the format of the
returned value, see `f--get-time'."
  (f--get-time path
               timestamp-p
               (if (fboundp 'file-attribute-modification-time)
                   #'file-attribute-modification-time
                 (lambda (f) (nth 5 f)))))