Class: ParseDate

Inherits:
Object
  • Object
show all
Defined in:
lib/ndr_support/string/conversions.rb

Class Method Summary collapse

Class Method Details

.parsedate(str, comp = false) ⇒ Object



12
13
14
15
# File 'lib/ndr_support/string/conversions.rb', line 12

def self.parsedate(str, comp = false)
  Date._parse(str, comp).
    values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
end