[ENH] Chronology-i-ConvertTDateTTimeTTimestamp1of2.2.cs ( current version ) ( [su][et] [BUG] Date>>firstWeekdayOfMonth: is off by 1 )

tomkoenig at mindspring.com tomkoenig at mindspring.com
Tue Jan 6 19:28:06 CET 2004


It appears that the Date>>firstWeekdayOfMonth: always returns a
weekdayIndex that is off by one.  For example:
(Date firstWeekdayOfMonth: 'January' year: 2003)  -->5 (Thurday, but
it's really Wednesday)
(Date firstWeekdayOfMonth: 'February' year: 2003)  -->1 (Sunday, but
it's really Saturday)
Just to double check:
(Date readFrom: '01-01-2003' readStream) weekdayIndex  --> 4
(Date readFrom: '02-01-2003' readStream) weekdayIndex  --> 7 

Tested with 3.7a #5623 plus Chronology change sets :
[ENH] Chronology-AnsiCompTests
[ENH] Chronology-c-ANSIDateAndTimeDuration ( current version )
[ENH] Chronology-d-YearMonthWeekRefactoring ( current version )
[ENH] Chronology-e-TemporaryDateTimeTimeSpan ( current version )
[ENH] Chronology-f-ANSICompatibilitySansDateAndTimeDuration.2.cs
[ENH] Chronology-i-ConvertTDateTTimeTTimestamp1of2.2.cs ( current
version )
[ENH] Chronology-j-ConvertTDateTTimeTTimestamp2of2.3.cs ( current
version )
[ENH] Chronology-l-Morphic.2.cs


More information about the Squeak-harvest mailing list