-
Notifications
You must be signed in to change notification settings - Fork 207
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
week() 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:
The text was updated successfully, but these errors were encountered: