data.temporal.iso

data.temporal.iso defines the range of attribute values expressing a temporal expression such as a date, a time, or a combination of them, that conform to the international standard Data elements and interchange formats – Information interchange – Representation of dates and times.
Moduletei — 1 The TEI Infrastructure
Used by
Class:
Declaration

<rng:define name="data.temporal.iso">
<rng:choice>
<!-- W3C -->
 <rng:data type="date"/>
 <rng:data type="gYear"/>
 <rng:data type="gMonth"/>
 <rng:data type="gDay"/>
 <rng:data type="gYearMonth"/>
 <rng:data type="gMonthDay"/>
 <rng:data type="time"/>
 <rng:data type="dateTime"/>
<!-- time w/ reduced precision <rng:data type="token"> <rng:param name="pattern">(-?[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T)?([01][0-9]|2[0-3])(:[0-5][0-9])?(Z|[+\-]((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?</rng:param> </rng:data> -->
<!-- week date <rng:data type="token"> <rng:param name="pattern">[0-9]{4}-W[0-9][0-9]?(-[1-7])?</rng:param> </rng:data> -->
<!-- any ISO 8601 format (and a lot more) -->
 <rng:data type="token">
  <rng:param name="pattern">[0-9.,DHMPRSTWYZ/:+\-]+</rng:param>
 </rng:data>
</rng:choice>
</rng:define>
data.temporal.iso =
   xsd:date
 | xsd:gYear
 | xsd:gMonth
 | xsd:gDay
 | xsd:gYearMonth
 | xsd:gMonthDay
 | xsd:time
 | xsd:dateTime
 | token { pattern = "[0-9.,DHMPRSTWYZ/:+\-]+" }
Note
If it is likely that the value used is to be compared with another, then a time zone indicator should always be included, and only the dateTime representation should be used.
For all representations for which ISO 8601 describes both a basic and an extended format, these Guidelines recommend use of the extended format.
While ISO 8601 permits the use of both 00:00 and 24:00 to represent midnight, these Guidelines strongly recommend against the use of 24:00.