Re: Time lookup

2009-04-01 Thread LD
: datetime.now().time()) in Django query. Anyway, thanks for response Regards, L On 31 Mar, 17:04, Brian Neal wrote: > On Mar 31, 5:31 am, LD wrote: > > > OK, but Django do not provide 'time' lookup so my problem is 'how to > > retrieve time part of datetime field in

Re: Time lookup

2009-03-31 Thread Brian Neal
On Mar 31, 5:31 am, LD wrote: > OK, but Django do not provide 'time' lookup so my problem is 'how to > retrieve time part of datetime field in a query' Ok, then why are you storing date and time together when all you care about is time? To me, when you have a DateTi

Re: Time lookup

2009-03-31 Thread LD
OK, but Django do not provide 'time' lookup so my problem is 'how to retrieve time part of datetime field in a query' On 31 Mar, 04:29, Brian Neal wrote: > On Mar 30, 10:12 am, LD wrote:> Hi, > > > I don't have idea how to do simple task. > >

Re: Time lookup

2009-03-30 Thread Brian Neal
On Mar 30, 10:12 am, LD wrote: > Hi, > > I don't have idea how to do simple task. > I have model with DateTimeField and I want to retrieve all objects > that have time for example lower than 2pm. > > I know about Django queryset lookup like year, month, day. Is there > something similar but for t

Time lookup

2009-03-30 Thread LD
Hi, I don't have idea how to do simple task. I have model with DateTimeField and I want to retrieve all objects that have time for example lower than 2pm. I know about Django queryset lookup like year, month, day. Is there something similar but for time? If not what is the simplest way to accomp