Name
xs:dateTime — Instant of time (Gregorian calendar).
Derived from:
xs:anySimpleType
Primary:
xs:dateTime
Known subtypes:
none
Facets:
xs:enumeration, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:whiteSpace
<xs:simpleType name="dateTime" id="dateTime"> <xs:restriction base="xs:anySimpleType"> <xs:whiteSpace value="collapse" fixed="true"/> </xs:restriction> </xs:simpleType>
Description
This datatype describes instants identified by the combination of a date and a time. Its value space is described as a “combination of date and time of day” in Chapter 5.4 of ISO 8601. Its lexical space is the extended format “[-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]”. The timezone may be specified as “Z” (UTC) or “(+|-)hh:mm.” Timezones that are not specified are considered “undetermined.”
Restrictions
The basic format of ISO 8601 calendar datetimes “CCYYMMDDThhmmss” is not supported.
The other forms of datetimes available in ISO 8601—ordinal dates defined by the year and the number of the day in the year and dates identified by calendar week and day numbers—are not supported.
As the value space is defined by reference to ISO 8601, there is no support for any calendar system other than Gregorian.
As the lexical space is also defined as reference to ISO 8601, there is no support for any localization such as different orders for date parts or named months.
The order relation between datetimes with and without timezone is partial: they can be compared only outside of a +/- ...
Get XML Schema now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.