Modify

Opened 16 years ago

Closed 16 years ago

#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 16 years ago.

Download all attachments as: .zip

Change History (6)

by anonymous, 16 years ago

Attachment: Test_WeekNumber.au3 added

comment:1 by blackja@…, 16 years ago

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

comment:2 by J-Paul Mesnage, 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 Jos, 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 JimBlack, 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 Valik, 16 years ago

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.