<time>
<time> (time) contains a phrase defining a time of day in any format. [3.6.4. Dates and Times]
Module | core |
Attributes | Attributes att.global.rendition (rendition) att.datable.w3c (when, notBefore, notAfter, from, to) att.duration.w3c (dur) |
Member of | |
Contained by |
core: abbr add author bibl corr date del desc editor emph expan foreign gloss head hi imprint item l label mentioned name note num orig p pubPlace publisher q quote ref reg resp rs sic term time title unclear
namesdates: addName affiliation birth death faith floruit forename genName langKnown nameLink nationality objectName occupation orgName persName placeName residence roleName settlement sex surname
textstructure: byline dateline docAuthor docDate docEdition docImprint imprimatur salute signed titlePart trailer
|
May contain |
core: abbr add choice date del ellipsis emph foreign gap gloss graphic hi lb mentioned milestone name note noteGrp num orig pb ptr q ref reg rs sic term time title unclear
figures: figure
gaiji: g
header: idno
lim: noteMarker rule
linking: linkGrp
msdescription: locusGrp
namesdates: addName affiliation forename genName geo location nameLink objectName orgName persName placeName roleName settlement surname
character data
|
Examples |
As he sat smiling, the
quarter struck — <time when="11:45:00">the quarter to twelve</time>. |
Schematron |
The time element should contain text
<sch:rule context="tei:time[ancestor::tei:text]"> <sch:assert test="normalize-space(string-join(descendant::text(),'')) ne ''">ERROR: The time element should not be empty.</sch:assert> </sch:rule> |
Source | Github
<elementSpec rend="change" module="core" ident="time"> <gloss>time</gloss> <desc>contains a phrase defining a time of day in any format.</desc> <classes> <memberOf key="att.global.rendition" mode="add"/> <memberOf key="att.datable.w3c" mode="add"/> <memberOf key="att.duration.w3c" mode="add"/> <memberOf key="model.dateLike" mode="add"/> </classes> <content> <alternate minOccurs="0" maxOccurs="unbounded"> <textNode/> <classRef key="model.gLike"/> <classRef key="model.phrase"/> <classRef key="model.global"/> </alternate> </content> <attList/> </elementSpec> |