Author Topic: Subtract from File name or dates  (Read 1029 times)


  • Jr. Member
  • **
  • Posts: 11
Subtract from File name or dates
« on: February 24, 2019, 06:14:17 PM »
I have some files that I realized are time-shifted. I need to subtract 6 hours, is this something that is possible to do automatically through EXIF tool? I have another tool that I can use to bulk re-name all the files once the times are changed, but unfortunately I can't find a way to bulk re-name the files first and then extract the new time via EXIF tool.



  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3476
Re: Subtract from File name or dates
« Reply #1 on: February 24, 2019, 06:33:10 PM »
Run exiftool -a -G1 -s FileOrDir to figure out exactly which tags you need to shift.  For single tags, you can use -TAG-=6 to subtract 6 hours or if you have multiple tags, you can combine the -TagsFromFile option and the GlobalTimeShift option -globalTimeShift -6 -TagsFromFile @ -TAG1 -TAG2
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.