ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: TT on March 04, 2012, 08:11:14 PM

Title: Skips date/time of 0000:00:00 00:00:00 ?
Post by: TT on March 04, 2012, 08:11:14 PM
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.
Title: Re: Skips date/time of 0000:00:00 00:00:00 ?
Post by: Phil Harvey on March 05, 2012, 07:19:41 AM
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
Title: Re: Skips date/time of 0000:00:00 00:00:00 ?
Post by: TT on March 05, 2012, 08:47:22 AM
Got it.  Thanks Phil.

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