Skip to content

Instantly share code, notes, and snippets.

@AlexxIT
Last active August 31, 2021 14:44
Show Gist options
  • Save AlexxIT/22d446388504696750dcfeae8fc48038 to your computer and use it in GitHub Desktop.
Save AlexxIT/22d446388504696750dcfeae8fc48038 to your computer and use it in GitHub Desktop.

Shift photos and video timestamp

  • AllDates - change photo/video metadata (year:month:day hour:minute:second)
  • FileModifyDate - change file timestamp
  • ./in - input folder
  • ./out - output folder
exiftool.exe "-AllDates+=4:7:17 12:50:28" "-FileModifyDate+=4:7:17 12:50:28" -o ./out ./in

Calculate timestamp diff value

Via WolframAlpha, example:

2017.01.01‎T09:09:32 to 2021.08.18T22:00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment