On 8/11/07, shawn bright <<a href="mailto:nephish@gmail.com">nephish@gmail.com</a>> wrote:<br>> lo there all,<br>> <br>> is there a way i can use find where `date_time` between '2007-07-21<br>> 01:23:25' and '2007-07-24 01:23:25' ?
<br>> <br>> how would i construct that ?<br>> <br>> like <br>> sensor_hit = store.find(SensorHit, ..... don't know what to put here <br><br>Probably something like<br><br><span style="font-family: courier new,monospace;">
store.find(SensorHit,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> SensorHit.date_time > '2007-07-21 01:23:25',</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> SensorHit.date_time < '2007-07-24 01:23:25')</span><br style="font-family: courier new,monospace;"><br>You can also use <= and >= if you want an inclusive range.
<br><br>-- <br>Christopher Armstrong<br>International Man of Twistery<br><a href="http://radix.twistedmatrix.com/">http://radix.twistedmatrix.com/</a><br><a href="http://twistedmatrix.com/">http://twistedmatrix.com/</a><br>
<a href="http://canonical.com/">http://canonical.com/</a><br><br>