ExifTool Forum

ExifTool => ExifTool GUI => Topic started by: rewallac on February 24, 2019, 06:14:17 PM

Title: Subtract from File name or dates
Post by: rewallac 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.

Thanks!
Title: Re: Subtract from File name or dates
Post by: StarGeek 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 (https://sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#tagsFromFile-SRCFILE-or-FMT) and the GlobalTimeShift option (https://sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#globalTimeShift-SHIFT) -globalTimeShift -6 -TagsFromFile @ -TAG1 -TAG2