Be Gentle - its my first submission and the first bit of Smalltalk I've done in years.
I did this to get a time zone aware TimeStamp. That's my big contribution to this work.
You can get it off the Swiki http://minnow.cc.gatech.edu/squeak/uploads/1076/TimeZoneDatabase2002- 12-21.cs and read more about it at http://minnow.cc.gatech.edu/squeak/1076
This is basically David T Lewis's TimeZoneDatabase stuff with some extra support for prompting the user to select a timezone and extra logic that only loads all the timezones when the user is prompted to select a timezone. Otherwise it only keeps two zones in memory - yours and the Zulu zone. In addition, there is a bunch of glue that consists of:
* Added ISO 8601 read and write support to Date and Time. * This package also includes a modified version of the TimeStamp class that comes with SqueakMap. The new TimeStamp has been gutted and made timezone aware. It is entirely implemented in terms of PointInTime. Thus, if you change your timezone, all of your timestamps will update accordingly.
TimeStamp also has support for reading/writing ISO 8601 format timestamps and consequently it is now safe to compare timestamps that were generated on different machines because they all reference the same base time.
Todd Blanchard
tblanchard@mac.com wrote:
Be Gentle - its my first submission and the first bit of Smalltalk I've done in years.
I did this to get a time zone aware TimeStamp. That's my big contribution to this work.
[SNIP]
Sounds nifty. Perhaps I could move over to this in SM1.1. As someone noted we need to clean up the packages so that there is one single package for this.
And of course, we should also take ANSI into account.
regards, Göran
squeak-dev@lists.squeakfoundation.org