can it also shift/change the actual timestamp on the jpg file?

Started by wesyah234, September 23, 2010, 01:48:34 PM

Previous topic - Next topic

wesyah234

This tool works great to shift the exif dates, but I am used to being able to sort by file date/time, so I was hoping the tool could also change the file timestamp as well.  Currently the file timestamp changes to the current time I am running the exiftool utility on the file.

is there a way to do this, or could you add another command line option?

thanks.

Phil Harvey

Sure.  You can set FileModifyDate to whatever you want, do something like -filemodifydate-=1 to shift the file's modification date, or set it from the value of another tag like "-filemodifydate<datetimeoriginal".  If you don't write the FileModifyDate, by default it is set to the current date/time when the file is modified (as per convention), but the -P option may be used to preserve the original modification date/time.

- 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 ($).

wesyah234


wesyah234

I didn't see this in the doc page... you may want to add it there under the timeshift section.

Phil Harvey

Thanks for the suggestion.  I'll think about how I can make this more prominent.  It does mention "any writable date or time tag can be shifted" in that section, but in truth very few people want to shift the FileModifyDate.

- 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 ($).