Re: [PATCH v3 6/9] lib: add date range query support

2012-09-25 Thread Michal Sojka
On Thu, Sep 13 2012, Michal Nazarewicz wrote: On Wed, Sep 12 2012, Jani Nikula wrote: Add a custom value range processor to enable date and time searches of the form date:since..until, where since and until are expressions understood by the previously added date/time parser, to restrict the

Re: [PATCH v3 6/9] lib: add date range query support

2012-09-17 Thread Michal Nazarewicz
Michal Nazarewicz min...@mina86.com writes: IMO this is totally unintuitive and not how the range should work. date:foo..bar should return messages whose date = foo and bar. So for instance date:november..yesterday should return messages whose date is 2012/11/01 00:00:00 and 2012/09/12

Re: [PATCH v3 6/9] lib: add date range query support

2012-09-17 Thread Michal Nazarewicz
On Thu, Sep 13 2012, Jani Nikula wrote: I find since rounding towards past and until rounding towards future a very simple rule. But YMMV. To implement rounding, each date needs to have a period of time to align to. I call that a duration. But if you have such a duration than I propose a

Re: [PATCH v3 6/9] lib: add date range query support

2012-09-13 Thread Michal Nazarewicz
On Wed, Sep 12 2012, Jani Nikula wrote: Add a custom value range processor to enable date and time searches of the form date:since..until, where since and until are expressions understood by the previously added date/time parser, to restrict the results to messages within a particular time

Re: [PATCH v3 6/9] lib: add date range query support

2012-09-13 Thread Tomi Ollila
On Thu, Sep 13 2012, Michal Nazarewicz min...@mina86.com wrote: On Wed, Sep 12 2012, Jani Nikula wrote: Add a custom value range processor to enable date and time searches of the form date:since..until, where since and until are expressions understood by the previously added date/time parser,

Re: [PATCH v3 6/9] lib: add date range query support

2012-09-13 Thread David Bremner
Michal Nazarewicz min...@mina86.com writes: IMO this is totally unintuitive and not how the range should work. date:foo..bar should return messages whose date = foo and bar. So for instance date:november..yesterday should return messages whose date is 2012/11/01 00:00:00 and 2012/09/12

Re: [PATCH v3 6/9] lib: add date range query support

2012-09-13 Thread Jani Nikula
On Thu, 13 Sep 2012, Tomi Ollila tomi.oll...@iki.fi wrote: On Thu, Sep 13 2012, Michal Nazarewicz min...@mina86.com wrote: On Wed, Sep 12 2012, Jani Nikula wrote: Add a custom value range processor to enable date and time searches of the form date:since..until, where since and until are