chronic
chronic copied to clipboard
'next n days', 'previous n days', where n is a number yields unexpected results
trafficstars
Today is February 6. The next 7 days will be February 13. But according to Chronic:
2.1.2 :017 > Date.today => #<Date: 2015-02-06 ((2457060j,0s,0n),+0s,2299161j)> 2.1.2 :018 > Chronic.parse('next 7 days') => 2015-02-07 07:00:00 -0500
As you can see, it yields the wrong date.
I'm not sure such format have ever been supported...