Name

xsd:gDay — Recurring period of time: monthly day

Synopsis

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

Derived from

xsd:anySimpleType

Primary

xsd:gDay

Known subtypes

None

Data parameters (facets)

enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern

Description

The value space of xsd:gDay is the period of one calendar day recurring each calendar month (such as the third day of the month); its lexical space follows the ISO 8601 syntax for such periods (i.e., -- -DD) with an optional time zone.

When needed, days are reduced to fit in the length of the months, so ---31 would occur on the 28th of February of nonleap years.

Restrictions

The period (one month) and the duration (one day) are fixed, and no calendars other than Gregorian are supported.

Example

Valid values include ---01, ---01Z, ---01+02:00, ---01-04:00, ---15, and ---31.

The following values are invalid: --30- (the format must be ---DD), ---35 (the day is out of range), ---5 (all the digits must be supplied), or 15 (missing leading ---).

Get RELAX NG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.