teidata.temporal.w3c

teidata.temporal.w3c 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 W3C XML Schema Part 2: Datatypes Second Edition specification.
Moduletei — The TEI Infrastructure
Used by
Class:
Element:
Content model
<content>
 <alternate>
  <dataRef name="date"/>
  <dataRef name="gYear"/>
  <dataRef name="gMonth"/>
  <dataRef name="gDay"/>
  <dataRef name="gYearMonth"/>
  <dataRef name="gMonthDay"/>
  <dataRef name="time"/>
  <dataRef name="dateTime"/>
 </alternate>
</content>
Declaration
<rng:define name="teidata.temporal.w3c">
 <rng:choice>
  <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"/>
 </rng:choice>
</rng:define>
teidata.temporal.w3c =
   xsd:date
 | xsd:gYear
 | xsd:gMonth
 | xsd:gDay
 | xsd:gYearMonth
 | xsd:gMonthDay
 | xsd:time
 | xsd:dateTime
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.