[squeak-dev] Another push of date/time/duration updates

Chris Cunningham cunningham.cb at gmail.com
Sat Mar 7 06:31:16 UTC 2015


Hi.

Sorry for the excessively long delay in fixing the bugs in this package.

In the inbox are three packages that make a complete update with date/time
arithmetic:
Kernel-cbc.910
Collections-cbc.604
KernelTests-cbc.291

The first two extend the existing date arithmetic such as Date today + 3
days to include months and years as well.  Adding months (or subtracting
months) make it be the number of months you add/subtract off, nearest the
date of the first month as you can get.  So, February 28 + 1 month gives
March 28; January 31 + 1 month gives February 28th (or 29 in a leap year).
Similarly with year.
In addition, the durations can be chained together, such as 1 month + 1
year + 1 month, and then add this to a date (or dateAndTime).
Finally, these are covered by test, including additional tests for doing
date arithmetic (which previously did not exist).

Thanks,
cbc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150306/9c91f831/attachment.htm


More information about the Squeak-dev mailing list