How to add 1 day + 14 min to all EXIF lastmodified-timestamps?

Started by pstein, September 16, 2024, 07:57:16 AM

Previous topic - Next topic

pstein

How can I add (as a sample) 1 day + 14 minutes to all EXIF lastmodified timestamps?

StarGeek

This example in the docs shows you how to do it.

To shift all the EXIF time stamps forward 1 day and 14 minutes, you would use this command
exiftool -AllDates+="1 0:14:0" /path/to/files/

The format for the amount of time to shift is
-TAG±="Year:Month:Day Hour:Minute:Second"
Change ± into a plus or minus. You can drop any leading zero parts. In your example, I dropped the Year and Month because those weren't being shifted. And there must be a space between the Day and the Hour. Without the space, the first number defaults to Hours shifted.

But from the way you worded your question, I suspect that the EXIF timestamps are not really what you want to change, as the EXIF:ModifyDate really isn't used by any program. I think what you want to change is the file system modify data.

Use this command to see all the date/time tags in a file
exiftool -time:all -G1 -a -s file.jpg
See which one has the current value you see with your "lastmodified timestamps" and replace AllDates in the above command with the name of that tag. It is likely to be FileModifyDate.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).