Ticket #13282: 13282.diff
File 13282.diff, 1015 bytes (added by , 15 years ago) |
---|
-
docs/ref/models/querysets.txt
1568 1568 1569 1569 Example:: 1570 1570 1571 Entry.objects.filter(pub_date__week_day= 2)1571 Entry.objects.filter(pub_date__week_day=1) 1572 1572 1573 1573 SQL equivalent:: 1574 1574 1575 SELECT ... WHERE EXTRACT('dow' FROM pub_date) = ' 2';1575 SELECT ... WHERE EXTRACT('dow' FROM pub_date) = '1'; 1576 1576 1577 1577 (The exact SQL syntax varies for each database engine.) 1578 1578 1579 Note this will match any record with a pub_date that falls on a Monday ( day 21580 of the week), regardless of the month or year in which it occurs. Week days 1581 are indexed with day 1 being Sunday and day 7being Saturday.1579 Note this will match any record with a pub_date that falls on a Monday (the 1580 second day of the week), regardless of the month or year in which it occurs. 1581 Week days are indexed with day 0 being Sunday and day 6 being Saturday. 1582 1582 1583 1583 .. fieldlookup:: isnull 1584 1584