[storm] can i find between

shawn bright nephish at gmail.com
Sat Aug 11 17:22:55 BST 2007


thanks much !

shawn

On 8/11/07, Christopher Armstrong <radix at twistedmatrix.com> wrote:
>
> On 8/11/07, shawn bright <nephish at gmail.com> wrote:
> > lo there all,
> >
> > is there a way i can use find where `date_time` between '2007-07-21
> > 01:23:25' and '2007-07-24 01:23:25' ?
> >
> > how would i construct that ?
> >
> > like
> > sensor_hit = store.find(SensorHit, ..... don't know what to put here
>
> Probably something like
>
> store.find(SensorHit,
>            SensorHit.date_time > '2007-07-21 01:23:25',
>            SensorHit.date_time < '2007-07-24 01:23:25')
>
> You can also use <= and >= if you want an inclusive range.
>
> --
> Christopher Armstrong
> International Man of Twistery
> http://radix.twistedmatrix.com/
> http://twistedmatrix.com/
> http://canonical.com/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/storm/attachments/20070811/f3cd1216/attachment.htm 


More information about the storm mailing list