It turns out Chronic.parse has a poorly documented option of :context => :none.

By default, Chronic uses :context => :future, so 'today' means the rest of 
today. This also applies to 'this day' (which is what Chronic normalizes 
'today' to), 'this week', 'this month', etc.  

With :context => :none, 'today' means all of today. I think it's safe to use 
for all searches.

This feature has been around for at least a year -- Chronic 0.1.6 is the 
earliest gem I have, and it works.

Attachment: sup-chronic-today.diff
Description: Binary data

_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to