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).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access