Skip to content

SERVER-6190 Clarify $week documentation. #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions source/reference/aggregation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,9 @@ argument and return a JavaScript "long" number.
Takes a date and returns the week of the year as a number
between 0 and 53.

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

.. expression:: $year

Expand Down