From: grant@antiflux.org (Grant Hollingworth)
Subject: [sup-talk] [PATCH] chronic parsing for 'today'
Date: Wed, 21 Nov 2007 23:35:34 -0700 [thread overview]
Message-ID: <1195712820-sup-7120@spooky> (raw)
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
next reply other threads:[~2007-11-22 6:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-22 6:35 Grant Hollingworth [this message]
2007-11-23 22:50 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1195712820-sup-7120@spooky \
--to=grant@antiflux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox