Bert Freudenberg uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-bf.376.mcz==================== Summary ====================
Name: Kernel-bf.376
Author: bf
Time: 15 January 2010, 12:57:41.202 pm
UUID: 0c8eee97-6a0c-4e7a-ad21-990fc5adbd35
Ancestors: Kernel-ar.375
- add DateAndTime>>asUnixTime
=============== Diff against Kernel-ar.375 ===============
Item was added:
+ ----- Method: DateAndTime>>asUnixTime (in category 'squeak protocol') -----
+ asUnixTime
+ "answer number of seconds since unix epoch (midnight Jan 1, 1970, UTC)"
+
+ ^(self - self class unixEpoch) asSeconds!
Item was added:
+ ----- Method: DateAndTime class>>unixEpoch (in category 'squeak protocol') -----
+ unixEpoch
+ "Answer a DateAndTime representing the Unix epoch (1 January 1970, midnight UTC)"
+
+ ^ self basicNew
+ ticks: #(2440588 0 0) offset: Duration zero;
+ yourself.
+ !