RosettaCodeData/Task/File-modification-time/Emacs-Lisp/file-modification-time.l

6 lines
201 B
Plaintext

(nth 5 (file-attributes "input.txt")) ;; mod date+time
(set-file-times "input.txt") ;; to current-time
(set-file-times "input.txt"
(encode-time 0 0 0 1 1 2014)) ;; to given date+time