xsd:dateTimeStamp
The type xsd:dateTimeStamp
represents a specific date and time in the format CCYY-MM-DDThh:mm:ss.sss
, which is a concatenation of the T
". All of the same rules that apply to the xsd:dateTimeStamp
as well.
Its only difference from Z
is used to indicate Coordinated Universal Time (UTC). All other time zones are represented by their difference from Coordinated Universal Time in the format +hh:mm
, or -hh:mm
. These values may range from -14:00
to 14:00
. For example, US Eastern Standard Time, which is five hours behind UTC, is represented as -05:00
. If no time zone value is present, it is considered unknown; it is not assumed to be UTC.
Simple Type Information
Namespace: http://www.w3.org/2001/XMLSchema
Schema Document: builtintypes.xsd
Content
- Based on xsd:dateTime
- White Space: collapse
Examples
Valid values | Comment |
---|---|
2004-04-12T13:20:00-05:00 | 1:20 pm on April 12, 2004, US Eastern Standard Time |
2004-04-12T13:20:00Z | 1:20 pm on April 12, 2004, Coordinated Universal Time (UTC) |
Invalid values | Comment |
2004-04-12T13:20:00 | time zone is required |
2004-04-12T13:00Z | seconds must be specified |
2004-04-12Z | the time is required |
an empty value is not valid, unless xsi:nil is used |
Type Inheritance Chain
- xsd:anyType
- xsd:anySimpleType
- xsd:anyAtomicType
- xsd:dateTime
- xsd:dateTimeStamp
- xsd:dateTime
- xsd:anyAtomicType
- xsd:anySimpleType