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).

   

 

 

 

back to top