Class: Mods::Date::W3cdtfFormat
- Inherits:
-
Mods::Date
- Object
- Mods::Date
- Mods::Date::W3cdtfFormat
- Defined in:
- lib/mods/date.rb
Overview
Less strict W3CDTF-encoded date parser
Instance Attribute Summary
Attributes inherited from Mods::Date
Class Method Summary collapse
Methods inherited from Mods::Date
#approximate?, #as_range, #encoding, #encoding?, #end?, from_element, #inferred?, #initialize, #key?, parse_date, #point, #precision, #qualifier, #questionable?, #single?, #start?, #text, #to_a, #type
Constructor Details
This class inherits a constructor from Mods::Date
Class Method Details
.normalize_to_edtf(text) ⇒ Object
59 60 61 |
# File 'lib/mods/date.rb', line 59 def self.normalize_to_edtf(text) super.gsub('-00', '') end |