On Tue, 19 May 2015, Alessandro Benedetti wrote:
Is there any way to know which metadata are Dates or not ?

You can find out if a given property is a date or not. Most of the entries on the Metadata object will these days be properties, as we've been trying to convert Parsers to use typed Properties wherever possible

Most of the key dates are setup as properties, eg dc:created:
https://tika.apache.org/1.7/api/org/apache/tika/metadata/DublinCore.html#CREATED

It's very unlucky we can not format all the dates in the same way, in the
end, when the parser parse the metadata, it knows if it encounter a Date.

All date times are formatted the same way though - ISO-8601. They are stored with their native timezone where known, so that users who are interested can tell the difference between a file having a time of 12pm London time and one with 1pm Paris time.

Tika provides a way to get those as a simple Date if that's all you want, and Java provides ways to print those dates out in specific timezones if that's what you want

Nick

Reply via email to