Skip to content

Commit 8b8ff9e

Browse files
committed
SERVER-6190 Clarify $week documentation.
1 parent 9ae2fa4 commit 8b8ff9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/reference/aggregation.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,9 @@ argument and return a JavaScript "long" number.
844844
Takes a date and returns the week of the year as a number
845845
between 0 and 53.
846846

847-
Weeks start on Sundays and the days before the first Sunday of the
848-
year are in "week 0."
847+
Weeks begin on Sundays, and week 1 begins with the first Sunday
848+
of the year. Days preceding the first Sunday of the year are in
849+
week 0. This behavior is the same as strftime "%U".
849850

850851
.. expression:: $year
851852

0 commit comments

Comments
 (0)