Name
xs:time
Facets
xs:enumeration ,
xs:maxExclusive , xs:maxInclusive , xs:minExclusive , xs:minInclusive , xs:pattern , xs:whiteSpace |
The xs:time
type
specifies a time of day. Its contents appear in the format
hh
:
mm
:
ss
, where
hh
is the hour (00–23),
mm
is the minute (00–59) and
ss
is the second (00–59, plus a
possible decimal part). Acceptable times include 04:03:20
, 12:00:00
, and 18:47:49
.
A time zone relative to Coordinated Universal Time, also
known as Greenwich Time or UTC, may also be added. If there is a
time zone, the format is ± hh:mm
, wherein a plus or minus sign is
followed by a two-digit value for hours, then a colon, and then a
two-digit value for minutes. You can also use Z
in place of the time zone, indicating
UTC. Valid times with a time zone include 04:03:20+05:00
, 12:00:00-10:30
, and 18:47:49Z
.
Get XML Pocket Reference, 3rd Edition 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.