Class: SmartTime::Parser::RubyDateParser

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_time/parser/ruby_date_parser.rb

Class Method Summary collapse

Class Method Details

.parse(value, options) ⇒ Object



5
6
7
# File 'lib/smart_time/parser/ruby_date_parser.rb', line 5

def self.parse(value, options)
	Date.parse(value) rescue nil
end