XML technologies / XML Schema / Data type reference / xs:time
(Excerpt from “XML Schema” by Eric van der Vlist)
A daily recurring instant
Derived from: xs:anySimpleType
Primitive type: xs:time
Known subtypes: none
Facets: xs:enumeration, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:whiteSpace
Definition
<xs:simpleType name="time" id="time">
<xs:restriction base="xs:anySimpleType">
<xs:whiteSpace value="collapse" fixed="true"/>
</xs:restriction>
</xs:simpleType>Description
The lexical space of xs:time is identical to the time part of xs:dateTime (“hh:mm:ss[Z|(+|-)hh:mm]”). Its value space is the set of instants recurring daily.
Restrictions
The recurrence period, one day, is fixed, and no calendars other than Gregorian are supported.
Example
Valid values include "21:32:52", "21:32:52+02:00", "19:32:52Z", "19:32:52+00:00" or "21:32:52.12679".
Invalid values include "21:32" (all components must be supplied), "25:25:10" (the hour component is out of range), "-10:00:00" (the hour component is out of range) or "1:20:10" (all digits must be supplied).
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XML Schema” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de