From 8b8ff9e25881c444b5ab1112e7e4659ab483e6a7 Mon Sep 17 00:00:00 2001 From: astaple Date: Mon, 2 Jul 2012 19:27:12 -0700 Subject: [PATCH] SERVER-6190 Clarify $week documentation. --- source/reference/aggregation.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/reference/aggregation.txt b/source/reference/aggregation.txt index 4e124c2ed72..09f8d8eda1a 100644 --- a/source/reference/aggregation.txt +++ b/source/reference/aggregation.txt @@ -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