13.9.  Date Resolution

PDFUnit is able to compare dates (creation and modification dates) as year-month-day or additionally hour-minute-second. Two constants are available to choose between these options:

<!-- Constants to define the date resolution: -->

resolution="DATE"
resolution="DATETIME"

You can set a date resolution in the following tags:

<!-- Date resolution in tests:  -->

<hasCreationDate           withDate="2013-05-05T09:33:47" resolution="DATETIME" />
<hasCreationDateBefore     withDate="2099-01-01"          resolution="DATE" />
<hasCreationDateAfter      withDate="2013-01-01"          resolution="DATE" />

<hasModificationDate       withDate="2013-05-05T09:33:47" resolution="DATETIME" />
<hasModificationDateBefore withDate="2099-01-01"          resolution="DATE" />
<hasModificationDateAfter  withDate="2013-01-01"          resolution="DATE" />

When comparing two PDF documents, date values are always compared using resolution="DATE".