module EDTF
EDTF-Ruby¶ ↑
This module extends the Ruby date/time classes to support the Extended Date/Time Format (EDTF
). See the ‘EDTF::ExtendedDate` module for an overview of the features added to the Ruby `Date` class.
To parse EDTF
strings use either ‘Date.edtf` of `EDTF.parse`.
Constants
- VERSION
Public Instance Methods
parse(input, options = {})
click to toggle source
# File lib/edtf.rb 73 def parse(input, options = {}) 74 parse!(input, options) 75 rescue 76 nil 77 end
parse!(input, options = {})
click to toggle source
# File lib/edtf.rb 79 def parse!(input, options = {}) 80 ::Date.edtf!(input, options) 81 end