Class: RDF::Literal::MonthDay

Inherits:
Date
  • Object
show all
Defined in:
lib/rdf/xsd/date.rb

Overview

gMonthDay is a gregorian date that recurs, specifically a day of the year such as the third of May. Arbitrary recurring dates are not supported by this datatype. The value space of gMonthDay is the set of calendar dates, as defined in ยง 3 of [ISO 8601]. Specifically, it is a set of one-day long, annually periodic instances.

Constant Summary collapse

DATATYPE =
XSD.gMonthDay
GRAMMAR =
%r(\A\d{2}-\d{2}(?:(?:[\+\-]\d{2}:\d{2})|UTC|Z)?\Z).freeze
FORMAT =
'%m-%d%Z'.freeze