Opened 16 years ago
Closed 16 years ago
#1254 closed Bug (No Bug)
_WeekNumberISO and GUICtrlCreateMonthCal return different weeknumbers for same day
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.0.0 | Severity: | None |
| Keywords: | Cc: |
Description
I suspect _WeekNumberISO function is 'off by 1' since it returns a week number 1 greater than GUICtrlCreateMonthCal. This would result in 53 weeks in this year instead of 52. this is in 3.3.0.0 and 3.3.1.4.
Attachments (1)
Change History (6)
by , 16 years ago
| Attachment: | Test_WeekNumber.au3 added |
|---|
comment:1 by , 16 years ago
comment:2 by , 16 years ago
From ISO standpoint the week 53 exists. I don't know if we are in a year as such.
Jos our ISO expert will answer.
comment:3 by , 16 years ago
I get for both week 44 and here http://en.wikipedia.org/wiki/ISO_week_date you can find info about the ISO weeknr which can be 52.
Jos
comment:4 by , 16 years ago
Thanks for your wikipedia link. I understand now. This is not a bug, this is misuse of function. I will write my own UDF to calculate the NON-ISO week number since I could not find one in Autoit. Thanks for your help.
comment:5 by , 16 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |

I realized I put my name not my email address - sorry