Name

xs:gMonth

Facets

xs:enumeration, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:whiteSpace

The xs:gMonth type stores a month (identified by number) in the format --MM, where MM is the month (01–12). Acceptable values include --02, --12, and --01.

A time zone relative to Coordinated Universal Time, also known as Greenwich Time or UTC, may also be added. If there is a time zone, the format is ±hh:mm, wherein a plus or minus sign in followed by a two-digit value for hours, then a colon, and then a two-digit value for minutes. You can also use Z in place of the time zone, indicating UTC. Valid xs:gMonth values with a time zone include --02+05:00, --12-10:30, and --01Z.

Get XML Pocket Reference, 3rd Edition 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.