Module: Uberchronic

Defined in:
lib/uberchronic.rb

Class Method Summary collapse

Class Method Details

.parse(str) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/uberchronic.rb', line 7

def self.parse(str)
  if stamp = GetDate.parse(str)
    puts stamp.inspect
    return Time.at(stamp)
  else
    return Chronic.parse(str)
  end
end