Consecutive Hours for Modify Date/Time

Started by elcinnamonb, October 18, 2014, 10:48:41 AM

Previous topic - Next topic

elcinnamonb

Hello all,
First, thank you Phil for this superb tool. The time I am saving is worth every bit of gratitude to you and the whole community helping here.

My struggle:
I changed all dates (ModifyDate, DateTimeOriginal, CreateDate) using pyExifToolGUI 0.5.
Now all my dates have been changed to: 2014:04:05 14:00:00
Which becomes a problem when using this data to renamed the images (I don't want all of them named 2014-04-05 at 14-00-00-01.jpg, -02.jpg, and so on)

My question:
Can I modify all dates using pyExifToolGUI 0.5 Extra Menu Modify Date/Time function or the command -AllDates or any other approach, without modifying the time; or better yet, but modifying the time in consecutive intervals:

2014:04:05 14:00:00
2014:04:05 14:10:00
2014:04:05 14:20:00
2014:04:05 14:30:00

Any other solution/suggestion is also welcomed.

Greatly appreciate everybody' help. Thank you.

Phil Harvey

#1
I don't know about pyexiftool, but with exiftool you can do this to add 10 minutes more to each subsequent DateTimeOriginal:

exiftool '-datetimeoriginal+<0:${filesequence;$_*=10}' FILE

where FILE is one or more file and/or directory names.  The quoting above is for Mac/Linux.  Windows users should use double quotes instead.

- Phil

Edit: removed extra quote in command
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

elcinnamonb

Thank you Phil. This solves my concerns.

Excuse my ignorance: How should I properly named a DIR?

Say,

exiftool '-datetimeoriginal'+<0:${filesequence;$_*=10}' example.jpg would be for a file

And for a directory?

StarGeek

Just replace example.jpg with the path to the directory.

exiftool '-datetimeoriginal'+<0:${filesequence;$_*=10}' /path/to/images/

though, it looks like the single quotes are unbalanced in that example?
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Thanks StarGeek.  I have fixed my original post.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).