Display time of file

$ brew install coreutils
$ gdate -r file.ext '+%F %T'

Will print:

2007-06-27 20:03:44
Matthias Marschall over 10 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more