Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upweek() function returns a 6 day week at the beginning of a year #251
Comments
|
I confirm there is an issue with the week() function. The week starts on Tuesday and ends on Monday.
|
|
I don't think that the behavior mentioned by IamGianluca is actually a bug. The "Weeks is the number of complete seven day periods that have occurred between the date and January 1st, plus one." Thus, the weeks returned by |
|
@clbieganek you are right. This was a bug, and yes the behavior mentioned by @IamGianluca is as expected. |
There is a bug in the week() function which leads to the first week of the year being only 6 days long. For example, if you type
then you'll get
1 1 1 1 1 1 2 2 2 2. The code should be changed from it's current state, which is this:to this: