There’s a Ruby gem called Chronic that provides similar functionality to PHP’s strtotime():

http://chronic.rubyforge.org/