Image-ExifTool - Re: -if with DateTimeOriginal

Posted on Sat Apr 21 06:17:37 2007 by pdi in response to 4945 (See the whole thread of 8)
Re: -if with DateTimeOriginal
Phil,

So if you set -DateTimeOriginal="2007:00:00 00:00:00", and then read it back again with -d %Y%m%d - +datetimeoriginal, you will get "2006:11:30".

I understand the reasoning with day 0 being the last day of the previous month and so on, but I would have expected "2007:00:00 00:00:00" to become "2006:12:31" instead of "2006:11:30". And, if the previous period rule works cumulatively from left to right, I'd have expected "2006:11:29", falling back one day as "00:00:00" would become "23:59:59". Nevertheless, I tested it with a foto and for some reason it cannot be formatted as %Y%m%d at all but remains in the original format.

But at least on your system you can check for /00000002_000000/. It isn't pretty, but at least it g +ets you going.

This is exactly what I ended up doing. I agree it's not pretty, but it works fine.

pdi
Direct Responses: 4947 | Write a response