[storm] Like on DateTime using only date
lutz.horn at fastmail.fm
Tue Mar 4 07:38:54 GMT 2008
On Tue, 4 Mar 2008 11:03:11 +0900, "James Henstridge"
<james at jamesh.id.au> said:
> You could try something like this:
> today = datetime.date.today()
> start = datetime.datetime.combine(today, datetime.time(0,0))
> end = start + datetime.timedelta(days=1)
> results = self.store.find(
> Screening, Screening.when >= start, Screening.when < end)
> That is, pick all screenings that fall within the desired time interval.
That works like a charm, thank you!
More information about the storm