Class: RDF::Literal::DateTimeStamp

Inherits:
DateTime
  • Object
show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/rdf-xsd-e532a0ab7189/lib/rdf/xsd/date.rb

Overview

dateTimeStamp

The dateTimeStamp datatype is ·derived· from dateTime by giving the value required to its explicitTimezone facet. The result is that all values of dateTimeStamp are required to have explicit time zone offsets and the datatype is totally ordered.

Constant Summary collapse

DATATYPE =
RDF::XSD.dateTimeStamp
GRAMMAR =
%r(\A(-?\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?)((?:[\+\-]\d{2}:\d{2})|UTC|GMT|Z)\Z).freeze
FORMAT =
'%Y-%m-%dT%H:%M:%SZ'.freeze