0.64 Timestamp: change date only and not time

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

User avatar
orbspider
Posts: 170
Joined: Tue May 22, 2012 5:42 pm
Location: Malayan jungle

0.64 Timestamp: change date only and not time

Post by orbspider »

Hi,
I can't manage to change *only* the date and keep the hour-minutes as-are. It's therefore impossible to batch update a whole folder of images which have the wrong date (but correct hour-minutes) from camera.

-I can't use "specific date and time" as this would require impossible amount of input, file by file for the hour-minutes.
-I can't use the add number of days, because the time stamp from camera was written "2006", and correction to "2014" is impossible to reach by adding days! -8 yrs is more than 999 days, and cannot add years.

**Ideally, the "specific date and time" section needs a radio button by the hour/minute field so that only the date gets changed, if desired, and the hour/min is unaffected.

**or, there is ability to add years to creation date on the third option.

cheers
User avatar
orbspider
Posts: 170
Joined: Tue May 22, 2012 5:42 pm
Location: Malayan jungle

Re: 0.64 Timestamp: change date only and not time

Post by orbspider »

well I did mange it, but not with MP, with exiftool in a terminal... I used,

Code: Select all

exiftool -m -overwrite_original -alldates+='8:2:5 0' *
where "-alldates" is a tag for DateTimeOriginal, CreateDate, ModifyDate
the "+" adds time to exif dates
8:2:5 is Y:M:D and "0" refers to no time change (or else H:M:S to change the time in exif)
the -m was needed to get past NIKON "bad IFD0 directories"

I could have used jhead, which is possibly easier,

Code: Select all

jhead -ds 2014:03:11 file

jhead -ts 2014:03:10-12:08:40 file  
the first just sets the date, the 2nd, date and time