Dates
« ^» 3

The support for dates in TEI P5 has concentrated on enabling greater use of international standards (W3C and ISO).

Dating Attributes

att.datable.w3c provides attributes for normalization of elements that contain datable events using the W3C datatypes.
@when
supplies the value of a date or time in a standard form
@notBefore
specifies the earliest possible date for the event in standard form
@notAfter
specifies the latest possible date for the event in standard form
@from
indicates the starting point of the period in standard form
@to
indicates the ending point of the period in standard form

The W3C standard form for dates is YYYY-MM-DD.

Other Normalizations

For some uses the subset of ISO 8601 which is used by the W3C might not be enough, so the TEI provides an optional att.datable.iso and att.duration.iso classes to give the following attributes if needed:
@when-iso
the value of a date or time in a standard form
@notBefore-iso
the earliest possible date for the event
@notAfter-iso
the latest possible date for the event
@from-iso
the starting point of the period
@to-iso
the ending point of the period
@dur-iso
the length of this element in time

Relative Dates

Dates may also be provided not in an absolute way, but relative to something else
  • offset (the 'offset' component of a relative temporal expression)
The 'dur' attribute on the date and time elements can also be used to provide a period range. Though this is also available in ISO dateTime formulations.
Names, Dates, People and Places