Modify

#1254 closed Bug (No Bug)

_WeekNumberISO and GUICtrlCreateMonthCal return different weeknumbers for same day

Reported by: Jimblack@… 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)

Test_WeekNumber.au3 (713 bytes ) - added by anonymous on Oct 28, 2009 at 4:14:36 PM.

Download all attachments as: .zip

Change History (6)

by anonymous, on Oct 28, 2009 at 4:14:36 PM

Attachment: Test_WeekNumber.au3 added

comment:1 by blackja@…, on Oct 28, 2009 at 5:31:48 PM

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

comment:2 by Jpm, on Oct 28, 2009 at 7:27:29 PM

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 Jos, on Oct 28, 2009 at 9:14:58 PM

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 JimBlack, on Oct 29, 2009 at 2:12:54 AM

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 Valik, on Oct 30, 2009 at 4:11:00 PM

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.