Dates

David T. Lewis lewis at mail.msen.com
Sat Jan 29 14:52:24 UTC 2005


On Sat, Jan 29, 2005 at 10:45:15AM +0200, Brent Pinkney wrote:
> 
> I must confess that I live in a country with one time zone and no daylight  
> saving, so my experience of what support is required is theoretical. Any  
> siggestion on a test case for the daylight saving methods in Date would be  
> really helpful.
 
Hi Brent,

You might be interested in looking at TimeZoneDatabase on Squeak Map. This
includes a TimeTransformTest test case with lots of tests that exercise
time zone transformations (time zone offsets, daylight savings transitions,
and leap seconds).

The last release I made for this is an attempt to wire it in to your
Chronology framework. I'm not entirely happy with the way I did this,
because it touches too many Chronology methods, but it's at least workable
and it's fun to poke around with it.  Having it in Squeak makes it possible
to use an object explorer to poke through the database and figure out how
the rules work.

I'm not aware of anybody actually using TimeZoneDatabase so this is not
something I'm planning to put much additional work into, but I would
certainly appreciate any feedback you might have. (Actually I'm not sure 
why I ever did this package in the first place, it just seemed like an 
interesting thing to figure out ;)

Dave




More information about the Squeak-dev mailing list