Ah, I hadn't realized that these fields would behave differently.
Ideally, I guess I would have expected nothing, "" (blank) output for
%H:%M:%S''. I am guessing a bogus time might cause more questions than using
the real time. Looking more closely, I noticed that the two examples I have
here both include a separate time element.
Date Created : 2000:07:22
Time Created : 14:58:21-07:00
Release Date : 2006:01:10
Release Time : 14:49:49-08:00
I tested the example you mentioned:
C:\>perl exiftool -DateTimeCreated c:\sample.NEF -d "%m-%d-%y"
Date/Time Created : 07-22-00
This works great, but I was aiming for the -IPTC:DateCreated tag...
Show quoted text>From: " via RT" <bug-Image-ExifTool@rt.cpan.org>
>Reply-To: bug-Image-ExifTool@rt.cpan.org
>To: tuzen@hotmail.com
>Subject: [rt.cpan.org #19792] unexpected date format when -d is specified
>Date: Thu, 8 Jun 2006 13:44:17 -0400 (EDT)
>MIME-Version: 1.0
>
>
><URL:
http://rt.cpan.org/Ticket/Display.html?id=19792 >
>
>Ah, I remember the problem... If -d is used to reformat the date/time
>tags, ie)
>
>exiftool -d "%m-:%Y-%d %H:%M:%S"
>
>Then the date/time tags will show up properly, but the date-only tags will
>appear with a
>bogus time of 00:00:00, which may be misleading. Unfortunately there is no
>simple way to
>strip the time out of the result for date-only tags, so this problem can't
>be avoided.
>
>I'd like to hear what you (and other people) think about this, but because
>of this problem I
>think it is safest to keep -d so it works only on date/time tags.
>
>I know this bug system isn't really conducive to a discussion, but I think
>I need some input
>on this one.
>