User talk:Dmclapp: Difference between revisions
Catskill549 (talk | contribs) (Created page with "Hello, I noticed you added 'calendar' to the AWK language. I have copied the code to my machine (running Windows 8 and gawk 4.1) and have noticed that it doesn't work for leap...") |
No edit summary |
||
Line 9: | Line 9: | ||
- year 2008 is NG |
- year 2008 is NG |
||
tested via: ECHO 2012 | GAWK -f CALENDAR.AWK - |
tested via: ECHO 2012 | GAWK -f CALENDAR.AWK - |
||
Thanks for testing. When did you copy the code? I think at some point I noticed a problem like that and fixed it. That would have been on 22 Sep 2013 when I uploaded code for lastsunday. Check to see if you have a line "# leap year adjustment" followed "leap = 0" and 3 lines starting "if" and ending with "leap = 0" or "leap = 1" |
|||
--[[User:Dmclapp|Dmclapp]] ([[User talk:Dmclapp|talk]]) 00:33, 15 October 2013 (UTC) |
Revision as of 00:33, 15 October 2013
Hello, I noticed you added 'calendar' to the AWK language. I have copied the code to my machine (running Windows 8 and gawk 4.1) and have noticed that it doesn't work for leap years. For example, - year 2013 is OK - year 2012 is NG: missing 2/29, March starts on Wed and S/B Thurs, March has 29 days, etc. - years 2011-2009 are OK - year 2008 is NG tested via: ECHO 2012 | GAWK -f CALENDAR.AWK -
Thanks for testing. When did you copy the code? I think at some point I noticed a problem like that and fixed it. That would have been on 22 Sep 2013 when I uploaded code for lastsunday. Check to see if you have a line "# leap year adjustment" followed "leap = 0" and 3 lines starting "if" and ending with "leap = 0" or "leap = 1" --Dmclapp (talk) 00:33, 15 October 2013 (UTC)