--tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii
This replaces the change set I posted a couple of days ago.
Class PointInTime knows how to convert to and from Smalltalk time, and TimeZone knows how to obtain the offset between UTC and local time. Together, they provide a framework for mapping the local time in Smalltalk (Time and Date) to a location-independent PointInTime representation.
Class PointInTime now uses 01-Jan-1970 as the origin on its timeline.
PointInTimeNow represents the current time on the absolute timeline. Its single instance is updated by a process loop, but it is intended to be hooked into the VM so as to be updated by the system clock.
Class WallClock demonstrates the mapping of Date and Time to PointInTimeNow.
Class TimePlugin contains the pluggable primitives.
There is not yet any connection to a timezone database, but TimeZone can query the operating system to learn about the local timezone.
Dave
--tKW2IUtsqtDRztdT Content-Type: text/plain; name="Time.30Nov1057pm.cs" ; x-mac-type="54455854" ; x-mac-creator="522A6368" Content-Disposition: attachment; filename="Time.30Nov1057pm.cs" Content-Transfer-Encoding: imap_stub
0,1858,2,35001,1024,
--tKW2IUtsqtDRztdT--
squeak-dev@lists.squeakfoundation.org