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


Name

xsd:gYear — Period of one year

Synopsis

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

Derived from

xsd:anySimpleType

Primary

xsd:gYear

Known subtypes

None

Data parameters (facets)

enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern

Description

The value space of xsd:gYear is the period of one calendar year (such as the year 2003); its lexical space follows the ISO 8601 syntax for such periods (YYYY) with an optional time zone.

Restrictions

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

Example

Valid values include 2001, 2001+02:00, 2001Z, 2001+00:00, -2001, and -20000.

The following values are invalid: 01 (the century part is missing) or 2001-12 (month parts are forbidden).


This text is released under the Free Software Foundation GFDL.