by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


Name

xsd:gYearMonth — Period of one month

Synopsis

<xsd:simpleType name="gYearMonth" id="gYearMonth">
 <xsd:restriction base="xsd:anySimpleType">
 <xsd:whiteSpace value="collapse" fixed="true"/>
 </xsd:restriction>
</xsd:simpleType>

Derived from

xsd:anySimpleType

Primary

xsd:gYearMonth

Known subtypes

None

Data parameters (facets)

enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern

Description

The value space of xsd:gYearMonth is the period of one calendar month in a specific year (such as the month of February 2002); its lexical space follows the ISO 8601 syntax for such periods (i.e., YYYY-MM) with an optional time zone.

Restrictions

The duration (one month) is fixed, and no calendars other than Gregorian are supported.

Example

Valid values are 2001-10, 2001-10+02:00, 2001-10Z, 2001-10+00:00, -2001-10, and -20000-04.

The following values are invalid: 2001 (the month part is missing), 2001-13 (the month part is out of range), 2001-13-26+02:00 (the month part is out of range), or 01-10 (the century part is missing).


This text is released under the Free Software Foundation GFDL.