Skips date/time of 0000:00:00 00:00:00 ?

Started by TT, March 04, 2012, 08:11:14 PM

Previous topic - Next topic

TT

I'm using the following to sort a folder of pics...

-d /%%Y-%%m-%%d/ -directory^<%1/[$make]/($model)/$createdate

Everything works okay except pictures that have the date/time zeroed out are skipped.  Is there a way a folder of 0000\00\00 could be created so those pictures would still be processed?  They DO have the Make and Model info.

Phil Harvey

Unfortunately the -d option uses the standard C date/time library functions which are limited to the range 1970 to 2034.  One way around this is to handle this case specially:

exiftool "-directory<%1/[$make]/($model)/0000-00-00" -if "$createdate eq '0000:00:00 00:00:00'" ...

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

TT

Got it.  Thanks Phil.

I guess we're gonna be in trouble in 2035...