Subject: [sup-talk] [PATCH] chronic parsing for 'today'

From: [email-masked] (Grant Hollingworth)
Date: Wed, 21 Nov 2007 23:35:34 -0700

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

---

From: [email-masked] (William Morgan)
Date: Fri, 23 Nov 2007 14:50:54 -0800

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

Applied, thanks!

-- 
William <wmorgan-sup at masanjin.net>