[BUG][FIX][Chronology] Dates are never invalid

Ben Schroeder bschroeder at procro.com
Thu Sep 30 14:37:17 UTC 2004


Here is a fix to DateAndTime's error handling, based on what Date did in
3.6.  From the preamble:

As reported by Avi Bryant, version 3.6 would give an error when a date like

    Date year: 2004 month: 2 day: 30
    Date year: 2004 month: 2 day: 0
    
was created, as the 30th and 0th are 'out-of-bounds' for February of that
year.

It looks like a check, formerly in Date>>newDay:month:year:, was missing
after the transition to Chronology classes.  This changeset restores the
check.

Regards,
Ben Schroeder

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DateAndTimeDaysBeforeOrAfterMonth-bvs.2.cs.gz
Type: application/octet-stream
Size: 1023 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040930/0a5a219a/DateAndTimeDaysBeforeOrAfterMonth-bvs.2.cs.obj


More information about the Squeak-dev mailing list