> 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
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?
2 matches
Mail list logo