Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adamrosloniec/a70efb7c7c6378a54cf9019df8c6133a to your computer and use it in GitHub Desktop.
Save adamrosloniec/a70efb7c7c6378a54cf9019df8c6133a to your computer and use it in GitHub Desktop.
MacOS - Change file - Created date and modification date
// without seconds (YEAR, MONTH, DAY, HOUR, MIN):
touch -t 201904191556 image.jpg
// with seconds (YEAR, MONTH, DAY, HOUR, MIN.SECONDS):
touch -t 201904191556.12 image.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment