teidata.temporal.working

teidata.temporal.working defines the range of values, conforming to the W3C XML Schema Part 2: Datatypes Second Edition specification, expressing a date or a date and a time within the working life of the document.
Moduletei — The TEI Infrastructure
Used by
Class:
Content model
<content>
 <alternate>
  <dataRef name="date"
   restriction="(19[789][0-9]|[2-9][0-9]{3}).*"/>

  <dataRef name="dateTime"
   restriction="(19[789][0-9]|[2-9][0-9]{3}).*"/>

 </alternate>
</content>
Declaration
<rng:define name="teidata.temporal.working">
 <rng:choice>
  <rng:data type="date">
   <rng:param name="pattern">(19[789][0-9]|[2-9][0-9]{3}).*</rng:param>
  </rng:data>
  <rng:data type="dateTime">
   <rng:param name="pattern">(19[789][0-9]|[2-9][0-9]{3}).*</rng:param>
  </rng:data>
 </rng:choice>
</rng:define>
teidata.temporal.working =
   xsd:date { pattern = "(19[789][0-9]|[2-9][0-9]{3}).*" }
 | xsd:dateTime { pattern = "(19[789][0-9]|[2-9][0-9]{3}).*" }
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.

The earliest time expressable with this datatype is 01 January 1970 (the Unix Epoch), which could be written as either 1970-01-01 or 1970-01-01T00:00:00Z.