[FIX] WeekDateFixes-sbw

swessels at one.net swessels at one.net
Tue Feb 4 02:00:10 UTC 2003

from preamble:

"Change Set:		date fixes
Date:			31 January 2003
Author:			Stephan B Wessels

By default weeks begin on Monday in Squeak and code exists to toggle
between Sunday start
and Monday start.  This change set adds a explicit setting methods for
the start of week day.

There were a few places in the code where proper adjustment to Sunday
beginning weeks were not correct.  The Date #weekday math was corrected
to account for Monday/Sunday week start.
Month has a new #weeksInMonth method.
Week #indexInMonth: method was also fixed.

Note that the MonthMorph still works correctly since it coded around

Wrote some SUnit tests for Date and Week."!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WeekDateFixes-sbw.cs.gz
Type: application/octet-stream
Size: 2719 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030203/5d39f347/WeekDateFixes-sbw.cs.obj

More information about the Squeak-dev mailing list