mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Clarified docs about ISO 8601 week numbering.
This commit is contained in:
committed by
Tim Graham
parent
9aca67bea8
commit
0c100f8b57
@@ -221,9 +221,10 @@ returned when this timezone is active will be the same as above except for:
|
||||
|
||||
The ``week`` ``lookup_type`` is calculated based on `ISO-8601
|
||||
<https://en.wikipedia.org/wiki/ISO-8601>`_, i.e.,
|
||||
a week starts on a Monday. The first week is the one with the majority
|
||||
of the days, i.e., a week that starts on or before Thursday. The value
|
||||
returned is in the range 1 to 52 or 53.
|
||||
a week starts on a Monday. The first week of a year is the one that
|
||||
contains the year's first Thursday, i.e. the first week has the majority
|
||||
(four or more) of its days in the year. The value returned is in the range
|
||||
1 to 52 or 53.
|
||||
|
||||
Each ``lookup_name`` above has a corresponding ``Extract`` subclass (listed
|
||||
below) that should typically be used instead of the more verbose equivalent,
|
||||
|
||||
Reference in New Issue
Block a user