ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: VladChav on November 17, 2016, 05:15:08 PM

Title: Why can not I modify or delete Time Stamp?
Post by: VladChav on November 17, 2016, 05:15:08 PM
Why can“t modifier or delete Time Stamp?
I used the commands:

exiftool -TimeStamp=

or

exiftool "-TimeStamp<FileModifyDate"

These are the results:
0 image files updated
1 image files unchanged
:(
Title: Re: Why can not I modify or delete Time Stamp?
Post by: StarGeek on November 17, 2016, 06:39:15 PM
What kind of file?    What are the results of exiftool -timestamp -g1 -a -s file ?
Title: Re: Why can not I modify or delete Time Stamp?
Post by: VladChav on November 17, 2016, 07:25:03 PM
They are .jpg files

The results of exiftool -timestamp -g1 -a -s are:

---- Samsung ----
TimeStamp                       : 2016:11:02 15:35:09-05:00

Thank you very much for your attention StarGeek :)









Title: Re: Why can not I modify or delete Time Stamp?
Post by: StarGeek on November 17, 2016, 07:49:50 PM
Unfortunately, it appears that the Samsung:Timestamp tag is not writable by exiftool.  If you look under the Samsung tags (http://www.exiftool.org/TagNames/Samsung.html#Trailer), you'll see that Timestamp has an N under the writable column.
Title: Re: Why can not I modify or delete Time Stamp?
Post by: Phil Harvey on November 18, 2016, 07:24:56 AM
You can delete the Samsung trailer containing the TimeStamp with this command:

exiftool -trailer:all= FILE

As well as the TimeStamp, this will delete the MPF trailer containing the PreviewImage.  But these previews are mainly used by the cameras, and are of limited use afterwards.

- Phil
Title: Re: Why can not I modify or delete Time Stamp?
Post by: VladChav on November 18, 2016, 12:03:41 PM
Wow! It's great, it works! Thank you very much Phil  :) :) :)
Title: Re: Why can not I modify or delete Time Stamp?
Post by: 101db on November 19, 2016, 08:46:13 AM
Hi sorry to jump on your post but I'm having a similar problem, I'm trying to change a raw file. I type in the code for changing the date but how do I set it? I've pressed enter but no change..
Thanks
Title: Re: Why can not I modify or delete Time Stamp?
Post by: Phil Harvey on November 19, 2016, 09:39:05 AM
What was the exact command you used?  What messages did ExifTool give?  What was your ExifTool version?  What model of camera is the raw file?

- Phil
Title: Re: Why can not I modify or delete Time Stamp?
Post by: 101db on November 19, 2016, 09:56:33 AM
I used the command I found on the website: '-DateTimeOriginal+=5:10:2 10:48:0' though I only want my date moved forward 5 months so put '0:5:0 0:0:0' in that part. I downloaded today the windows version 10.33. I used a Canon 6D, file CR2
Title: Re: Why can not I modify or delete Time Stamp?
Post by: Phil Harvey on November 19, 2016, 10:52:39 AM
OK.  On Windows you need to use double quotes instead of single quotes.

- Phil
Title: Re: Why can not I modify or delete Time Stamp?
Post by: 101db on November 19, 2016, 11:40:59 AM
so the exact command as above but with " (a double) or '' (two singles)? Do I press enter afterwards and it just changes or do I need to do something to set it? Thank you
Title: Re: Why can not I modify or delete Time Stamp?
Post by: Phil Harvey on November 19, 2016, 02:35:32 PM
The command will look something like this:

exiftool "-datetimeoriginal+=0:5:0 0:0:0" FILE

Where you can drag and drop the file onto the cmd window instead of typing the file name for FILE.

Then press RETURN

- Phil
Title: Re: Why can not I modify or delete Time Stamp?
Post by: 101db on November 19, 2016, 03:00:42 PM
I've done everything as instructed but it still isn't working for me. Thanks for your help, looks like I will have to give up!
Title: Re: Why can not I modify or delete Time Stamp?
Post by: Hayo Baan on November 19, 2016, 06:06:25 PM
Please show us the exact command you used, I'm sure there is an error in your input somewhere, no reason to give up :D
Title: Re: Why can not I modify or delete Time Stamp?
Post by: 101db on November 20, 2016, 02:26:21 PM
I don't know how to show you, but I can tell you.. I dragged my photo I want to change over the exiftool application to open with exiftool then typed in

exiftool "-datetimeoriginal+=0:5:0 0:0:0"

I then dragged the picture file into the exiftool text bit where I was typing and the file name came up then pressed enter this didn't work, so I also tried typing FILE on the end of what I typed as Phil said but still didn't work. maybe I am doing something wrong?
Title: Re: Why can not I modify or delete Time Stamp?
Post by: Phil Harvey on November 20, 2016, 02:41:21 PM
Right.  You need to open a "cmd.exe" window then type the command before dragging and dropping the image.  If you drag and drop and image on ExifTool it will just extract the metadata but won't allow you to type anything else.

- Phil