XMP date precision

Started by JeffreyEarly, June 24, 2010, 04:22:57 PM

Previous topic - Next topic

JeffreyEarly

Phil,

We're trying to set a partial precision date to an XMP tag, such as,
./exiftool -n -XMP:DateCreated='2010:06:14 17:51' TestImage.JPG
but when I read the tag back out I get,
./exiftool -n -XMP:DateCreated TestImage.JPG
Date Created                    : 2010:06:14 17:51:00

If I just do day-precision (instead of minute-precision) everything works as expected.

If we're reading page 11 of the XMP spec part 2 correctly, then minute-precision should be allowed (although not hour-precision).

We're doing this through the API and not the app, but the results appear the same. Are we doing something wrong? Or is this a bug?

Thanks,
Jeffrey

Phil Harvey

Hi Jeffrey,

You are correct about the XMP date/time formatting.  ExifTool should allow the seconds to be missing without inserting a value of 00 as is the current behaviour.  I will fix this in the next release.

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