xs:time
The xs:time
type represents a specific time of day on no
particular day, such as 3:32 P.M. Times are written in the form
hh:mm:ss.xxx
using a 24-hour clock and
as many fractions of a second as necessary. For example, 3:41 P.M.
is written as 15:41:00
. 3:41
A.M. and 0.5 seconds is written as 03:41:00.5
. The Z
suffix indicates Coordinated Universal
Time (Greenwich Mean Time, UTC). Otherwise, the time zone can be
indicated as an offset in hours and minutes from UTC. For example,
15:41:00-05:00
is 3:41 P.M., in
the U.S. Eastern time zone. The time zone may be omitted, in which
case the actual time is somewhat nondeterministic. These are all
valid values of type xs:time
:
03:32:00-05:00
00:00:00Z
08:30:34.121893632178
23:59:59
Constraining facets that apply to xs:time
are minInclusive
, maxInclusive
, minExclusive
, maxExclusive
, pattern
, enumeration
, and whiteSpace
. Note, however, that when the
time zone is not specified, it's not always possible to determine
unambiguously whether one time falls after another.