Author Topic: XMP date precision  (Read 2296 times)

JeffreyEarly

  • Newbie
  • *
  • Posts: 1
XMP date precision
« on: June 24, 2010, 04:22:57 PM »
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
Code: [Select]
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

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14554
    • ExifTool Home Page
Re: XMP date precision
« Reply #1 on: June 25, 2010, 07:40:19 AM »
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).