Skip to content

Instantly share code, notes, and snippets.

@colourful987
Last active July 15, 2019 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colourful987/4755128398ec1b3fc8209271d2da7fc3 to your computer and use it in GitHub Desktop.
Save colourful987/4755128398ec1b3fc8209271d2da7fc3 to your computer and use it in GitHub Desktop.
How to get file modify time or access time in OSX
stat -f "Access (atime): %Sa%nModify (mtime): %Sm%nChange (ctime): %Sc%nBirth (Btime): %SB" Screenshot_FFFDA56C-3018-4EA8-8A8B-2589E9C47865.jpg
date -r Screenshot_FFFDA56C-3018-4EA8-8A8B-2589E9C47865.jpg +%Y-%m-%d-%H:%M:%S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment