![]() References and Notes[1] xs:dateThe W3C XML schema language defines a data type 'xs:date' to represents a day, in terms of year, month, and day of month: 'yyyy-mm-dd'
If the value is more than four digits, it may not have leading zeroes. Examples:
[2] xs:timeThe W3C XML schema language defines a data type 'xs:date', representing an instant of time in the form of hour, minute, second, and time zone offset: 'hh:mm:ss.sssssszzzzzz' The optional time zone indicator is preceded by a plus or minus, for "earlier" or "later" than UTC time. For example 14:30:00-05:00 represents 2:30PM US Eastern time (which is 5 hours earlier than UTC. The form of the time zone representation is 'hh:mm' for hours and seconds. Normally, 'mm' is "00", however some countries have defined time zones that differ from adjacent time zones by 30 minutes. [3] xs:dateTimeThe W3C XML schema language also defines a data type 'xs:dateTime', representing an instant in time, in terms of date and time where date and time are represented as xs:date and xs:time as described above, and they are separated by 'T". Example: 2008-12-02T11:30:00-05:00 represents 11:30 US Eastern time on December 2, 2008.[4] W3CDTFW3CDTF is an Note published by the W3C, which defines a profile of ISO 8601 (discussed below). Its premise is that ISO 8601 is overly complex, describing many date/time formats, and that it is useful to restrict the supported formats to a small number, a set likely to satisfy most requirements. The Note, though published by W3C, is not endorsed by W3C, and it contains a W3C disclaimer to that effect. Nevertheless it is used by metadata schemes, for example Dublin Core. W3CDTF prescribes the following formats:
[5] TEMPERTEMPER (Temporal Enumerated Ranges) is an Internet Draft which addresses some of these concerns and was considered as a possible solution. However TEMPER diverges considerably from ISO 8601, to the extent that a solution based on the proposed approach (i.e. compatibility with ISO 8601), using TEMPER, is not possible. However, the proposed solution does use mechanisms similar to TEMPER where appropriate. [6] ISO 8601The International Standard for the representation of dates and times: "Data elements and interchange formats — Information interchange — Representation of dates and times."
|
|
August 7, 2009 |