Creates a shape for ISO 8601 year values (YYYY).
Defaults the datatype to xsd:gYear.
xsd:gYear
Supports optional timezone indicators (Z for UTC or ±hh:mm offset).
Optional validation constraints
An immutable shape for validating ISO 8601 year strings
If constraints contains contradictory values
constraints
XSD permits timezone indicators for gYear as a deviation from ISO 8601.
XSD 1.0 Part 2: Datatypes § 3.2.11 gYear
Creates a shape for ISO 8601 year values (YYYY).
Defaults the datatype to
xsd:gYear.Supports optional timezone indicators (Z for UTC or ±hh:mm offset).