[squeak-dev] The Trunk: Kernel-cmm.757.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri May 3 16:40:31 UTC 2013
Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.757.mcz
==================== Summary ====================
Name: Kernel-cmm.757
Author: cmm
Time: 3 May 2013, 11:37:02.186 am
UUID: 655c18f5-1a73-4fae-bd0d-0e2bb4bb06d7
Ancestors: Kernel-dtl.756
- Added convenience methods for creating DateAndTimes relative to now.
- When materializing Floats via fromIEEE32Bit:, use the canonicalized 0.0.
=============== Diff against Kernel-dtl.756 ===============
Item was added:
+ ----- Method: Duration>>ago (in category 'squeak protocol') -----
+ ago
+ "Answer the DateAndTime which was the receiver's duration ago.
+ e.g., 5 minutes ago. 2 days ago."
+ ^ DateAndTime now - self!
Item was added:
+ ----- Method: Duration>>fromNow (in category 'squeak protocol') -----
+ fromNow
+ "Answer the DateAndTime which which occurs the receiver's duration from now.
+ e.g., 5 minutes fromNow. 2 days fromNow."
+ ^ DateAndTime now + self!
More information about the Squeak-dev
mailing list
|