[DOCS-2797] Comment on: "manual/reference/operator/aggregation/week.txt" Created: 26/Feb/14 Updated: 03/Nov/17 Resolved: 28/Feb/14 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | v1.3.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Alexander Pirsig | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: http://docs.mongodb.org/manual/reference/operator/aggregation/week/ |
||
| Participants: | |
| Days since reply: | 9 years, 50 weeks, 5 days ago |
| Description |
|
Taks a date and retunrs the week of the year as a number between 0 and 53. I think it should say "between 0 and 52" and not 53 right? |
| Comments |
| Comment by Sam Kleinman (Inactive) [ 28/Feb/14 ] |
|
$week is consistent with %U http://linux.die.net/man/3/strftime. The first sunday of the year is the first day in week 01, and it's possible given leap years, that using this system there could be 53 weeks in a year. |