From: Arlen Cuss Date: 2008-02-21T10:56:38+09:00 Subject: Re: Chronic parse problem? ------=_Part_680_4207144.1203559006840 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi there, On Thu, Feb 21, 2008 at 6:35 AM, cal wrote: > >> Chronic.parse("now", :context => :past) > => Wed Feb 20 11:17:36 -0500 2008 > >> Chronic.parse("2008-02-20", :context => :past) > => Wed Feb 20 12:00:00 -0500 2008 > >> Chronic.parse("2008-02-20 10am", :context => :past) > => Wed Feb 20 10:00:00 -0500 2008 > >> Chronic.parse("2008-02-20 10:00:00", :context => :past) > => Wed Feb 20 10:00:00 -0500 2008 > >> Chronic.parse("2008-02-20 4pm", :context => :past) > => Wed Feb 20 16:00:00 -0500 2008 > >> Chronic.parse("2008-02-20 16:00:00", :context => :past) > => Tue Feb 19 16:00:00 -0500 2008 > > I haven't used Chronic before, but it seems if you're asking for 4pm, in the past, on the 20th of February, it's a hard order to fill when it's only 11am on the 20th now. What other options are there for :context, what does it do? Cheers, Arlen ------=_Part_680_4207144.1203559006840--