Re: Lookup by week

2006-01-31 Thread Jamison Roberts
I don't know the Django API very well, however it might make sense to support the date extraction functions offered by various databases.  I have to admit that I only use Oracle and Sql Server at work, however I know that they support month, day, year, day of week, day of year, week number

Re: Lookup by week

2006-01-31 Thread Jeremy Dunck
On 1/31/06, Jamison Roberts <[EMAIL PROTECTED]> wrote: > I don't know the Django API very well, however it might make sense to > support the date extraction functions offered by various databases. -1. As an app developer, I don't want to think about which DB supports which date parts. I

Re: Lookup by week

2006-01-30 Thread Max Battcher
Adrian Holovaty wrote: On 1/30/06, Jan Rademaker <[EMAIL PROTECTED]> wrote: Would it make sense to implement such a thing? An alternative would be to figure out at what date a week starts and ends and just use pub_date__range, but that's not really the point. I'm just curious how easy/hard it

Re: Lookup by week

2006-01-30 Thread Adrian Holovaty
On 1/30/06, Jan Rademaker <[EMAIL PROTECTED]> wrote: > Would it make sense to implement such a thing? An alternative would be > to figure out at what date a week starts and ends and just use > pub_date__range, but that's not really the point. I'm just curious how > easy/hard it would be to

Lookup by week

2006-01-30 Thread Jan Rademaker
Hello, As far is I know it's not possible to query date fields for a cerain week number, eg. # Select all polls from week 5, 2006 polls.get_list( pub_date__year=2006, pub_date__week=5 ) Would it make sense to implement such a thing? An alternative would be to figure out at what date a