[ENH] Date>>#addMonths:

Stephane Rollandin hepta at zogotounga.net
Mon Mar 8 13:06:22 UTC 2004


we have Date>>#addDays:, here is Date>>#addMonths: and the two related 
methods #onNextMonth and #onPreviousMonth

those make it easier to have a given day move from month to month (is there 
an other way to do so that I overlooked ?)


note that we have 	

	'31 january 2004' asDate onNextMonth

return 2 march 2004, which is consistent with the value of

	'31 february 2004' asDate

(although errors could be raised here I guess)


Stef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Date-utils.st
Type: application/octet-stream
Size: 513 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040308/48800621/Date-utils.obj


More information about the Squeak-dev mailing list