getfileinfo
Get information about a file in an HFS+ directory. tldr-pages
On macOS
macOS
Display information about a given file
GetFileInfo path/to/fileIdentifyDisplay the date and time a given file was created
GetFileInfo -d path/to/fileIdentifyDisplay the date and time a given file was last modified
GetFileInfo -m path/to/fileIdentifyDisplay the creator of a given file
GetFileInfo -c path/to/fileIdentify