Stylus Studio XML Editor

Table of contents

Appendices

D.2 Truncated and Reduced Formats

Truncated and Reduced Formats

[ISO8601] supports a variety of "truncated" formats in which some of the characters on the left of specific formats, for example, the century, can be omitted. Truncated formats are, in general, not permitted for the datatypes defined in this specification with three exceptions. The [time] datatype uses a truncated format for [dateTime] which represents an instant of time that recurs every day. Similarly, the [gMonthDay] and [gDay] datatypes use left-truncated formats for [date]. The datatype [gMonth] uses a right and left truncated format for [date].

[ISO8601] also supports a variety of "reduced" or right-truncated formats in which some of the characters to the right of specific formats, such as the time specification, can be omitted. Right truncated formats are also, in general, not permitted for the datatypes defined in this specification with the following exceptions: right-truncated representations of [dateTime] are used as lexical representations for [date], [gMonth], [gYear].