Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

Chronic: Natural date parsing for Ruby

By Peter Cooper / September 10, 2006

Chronic is a natural language (English only, at present, I think) time and date parser written entirely in Ruby. It supports a staggering number of different ways of expressing the date and time. For example:

this monday 07:30
may 15th
tomorrow morning
yesterday at 9:00
tomorrow at 11pm
wednesday last week

Time.parse already does a great job, but this goes a step further. You can install chronic quickly with gem install chronic.

Other Posts to Enjoy

Twitter Mentions