Function: f-change-time

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

Signature

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

Documentation

Return the last status change time of PATH.

The status change time (ctime) 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.

Other relevant functions are documented in the f group.

Shortdoc

;; f
(f-change-time "path/to/file.txt")
    => (25517 48756 26337 111000)
  (f-change-time "path/to/dir")
    => (25517 57887 344657 210000)
  (f-change-time "path/to/file.txt" t)
    => (1672330868026337111 . 1000000000)
  (f-change-time "path/to/dir" t)
    => (1672339999344657210 . 1000000000)
  (f-change-time "path/to/file.txt" 'seconds)
    => 1672330868
  (f-change-time "path/to/dir" 'seconds)
    => 1672339999

Source Code

;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
(defun f-change-time (path &optional timestamp-p)
  "Return the last status change time of PATH.

The status change time (ctime) 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-status-change-time)
                   #'file-attribute-status-change-time
                 (lambda (f) (nth 6 f)))))