@grafctory/blue - v0.17.0
    Preparing search index...

    Function year

    • Creates a shape for ISO 8601 year values (YYYY).

      Fixes the datatype to xsd:gYear and admits an optional timezone indicator (Z for UTC or a ±hh:mm offset bounded to the ±14:00 range).

      Type Parameters

      Parameters

      Returns StringShape<{ inferred from <C> }>

      An immutable shape admitting ISO 8601 years, narrowed to the values the constraints enumerate

      TraceError Where the stated constraints contradict one another

      XSD permits timezone indicators for gYear as a deviation from ISO 8601.