From mboxrd@z Thu Jan 1 00:00:00 1970 From: grant@antiflux.org (Grant Hollingworth) Date: Wed, 21 Nov 2007 23:35:34 -0700 Subject: [sup-talk] [PATCH] chronic parsing for 'today' Message-ID: <1195712820-sup-7120@spooky> 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