gYear data type
The xs:gYear data type represents a Gregorian calendar year. Gregorian calendar years are defined in ISO 8601. Derived from data type xdt:anyAtomicType.
The lexical form of xs:gYear is yyyyzzzzzz.
This form is a truncated representation of xs:dateTime that does not
include the month, day, or time of day properties. Negative dates
are not allowed. The following abbreviations describe this form:
- yyyy
- A 4-digit numeral that represents the year. Valid values are from 0001 through 9999. A plus sign (+) is not allowed.
- zzzzzz
- Optional. If present, represents the timezone. See Timezone indicator for more information about the format for this property.
For example, the following form represents
the Gregorian year 2005: 2005
.