ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: wesyah234 on September 23, 2010, 01:48:34 PM

Title: can it also shift/change the actual timestamp on the jpg file?
Post by: wesyah234 on September 23, 2010, 01:48:34 PM
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.
Title: Re: can it also shift/change the actual timestamp on the jpg file?
Post by: Phil Harvey on September 23, 2010, 02:01:46 PM
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
Title: Re: can it also shift/change the actual timestamp on the jpg file?
Post by: wesyah234 on September 23, 2010, 02:07:24 PM
Thank you, that works perfectly! Thanks for a great tool!
Title: Re: can it also shift/change the actual timestamp on the jpg file?
Post by: wesyah234 on September 23, 2010, 02:09:12 PM
I didn't see this in the doc page... you may want to add it there under the timeshift section.
Title: Re: can it also shift/change the actual timestamp on the jpg file?
Post by: Phil Harvey on September 23, 2010, 03:09:23 PM
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