[storm] can i find between
Christopher Armstrong
radix at twistedmatrix.com
Sat Aug 11 16:34:08 BST 2007
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/1a616b0a/attachment.htm
More information about the storm
mailing list