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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sup-chronic-today.diff
Type: application/octet-stream
Size: 607 bytes
Desc: not available
Url :
http://rubyforge.org/pipermail/sup-talk/attachments/20071121/4657fc5d/attachment-0001.obj