Re: Query Object and comparing only partial TimeField Value

2007-07-08 Thread Tim Chase
> What I want to do is get post between 9:00AM-5:00PM on any day. I > just want to compare Hour part of "created_at" field. If the hour is > between 9-5, can be any day, get the matching records. > > Pseudo Django Python Code: > > Post.objects.get( Q(created_at = (9:00AM - 5:00PM))) > > Is

Query Object and comparing only partial TimeField Value

2007-07-08 Thread johnny
What I want to do is get post between 9:00AM-5:00PM on any day. I just want to compare Hour part of "created_at" field. If the hour is between 9-5, can be any day, get the matching records. Pseudo Django Python Code: Post.objects.get( Q(created_at = (9:00AM - 5:00PM))) Is this possible?