Chronic and Time Spans

M

MaggotChild

Chronic.parse 'past 2 months', :guess => false
=> Sun Aug 16 18:01:15 -0700 2009..Sun Aug 16 18:01:16 -0700 2009

past 2 months represent time spans not a single day.
Chronic.parse 'this past week', :guess => false
=> Sun Oct 04 00:00:00 -0700 2009..Sun Oct 11 00:00:00 -0700 2009

that works, but these don't:
Chronic.parse 'past 2 weeks', :guess => false
=> Sun Oct 02 14:00:00 -0700 2009..Sun Oct 02 14:00:01 -0700 2009
Chronic.parse 'this past 2 months', :guess => false
=> Tue Sep 01 14:00:00 -0700 2009..Tue Sep 01 14:00:01 -0700 2009

These are inconsistent. Please tell me I'm missing something.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top