mojombo/chronic — Issue #77: chronic is unable to parse date ranges
Author: DanielViglione
Created: 2012-01-13 18:11:51+00:00
State: open

Hey all,

I am unable to parse date ranges with Chronic:

1.9.2p290 :003 > Chronic.parse(1/1/2011-2/1/2011, :guess => false)
=> 2012-01-13 12:00:00 -0500..2012-01-13 12:00:01 -0500

1.9.2p290 :004 > Chronic.parse("1/1/2011-2/1/2011", :guess => false)
=> nil

The first example returns the wrong range (in fact it just returns a second) and the second one returns nill.

How do I get a range?

thanks for response