On Thu, 1 May 2008 22:00:20 +0200,
Vladimir Nadvornik (nadvornik@...) wrote:
>This is what I have so far. It is not yet complete and needs a lot of work,
>I just want to show that I am working on it ;). The biggest problem so
far is
>a parser for the xmp date values in ISO 8601.
Couldn't you use XMPUtils::ConvertToDate() for that?
It's defined in the Adobe XMP SDK (XMPUtils.cpp:1271) and
I think it covers most, if not all, of the possible ISO 8601
representations.
Something along these lines:
std::string xmpDateString;
XMP_DateTime xmpDateTime = {0};
char exifDateString[20];
XMPUtils::ConvertToDate(xmpDateString.c_str(), &xmpDateTime);
snprintf(exifDateString, sizeof(exifDateString),
"%04ld:%02ld:%02ld %02ld:%02ld:%02ld",
xmpDateTime.year,
xmpDateTime.month,
xmpDateTime.day,
xmpDateTime.hour,
xmpDateTime.minute,
xmpDateTime.second);
-- marco
--
It's not the data universe only, it's human conversation.
They want to turn it into a one-way flow that they have entirely
monetized. I look at the collective human mind as a kind of
ecosystem. They want to clear cut it. They want to go into the
rainforest of human thought and mow the thing down.