For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > April 2006 > re: External Repository for VW Core.TimeZones--all 500+ Olson Time Zones









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author re: External Repository for VW Core.TimeZones--all 500+ Olson Time Zones
Chronos

2006-04-14, 7:07 pm

I didn't realize that people would continute to use URLs from messages
posted months ago, so I didn't post an update message when I changed
the canonical URLs for downloading the archive file containing the
"External Repository for VW Core.TimeZones."

Here's the currently-correct download link:
http://www.chronos-st.org/downloads...y-OlsonTZDB.zip

Chronos

2006-04-14, 7:07 pm

Ok, so Google Groups can't correctly handle replies to old posts.

So here's the original post, with corrected links:

I have implemented a package that adds support to VisualWorks'
Core.TimeZone class for retrieving TimeZone instances from (and storing

them into) an external repository. I have also added code to Chronos
that generates an external repository of serialized Core.TimeZone
instances.

The name of the package is TimeZone-External Repository-Olson TZDB.
It's available from the Chronos web site (link:
http://www.chronos-st.org; direct download link:
http://www.chronos-st.org/downloads...y-OlsonTZDB.zip)



The download file includes the installation instructions and the
current version of the VisualWorks TimeZone Repository. The repository
contains serialized instances of Core.TimeZone for all 400+ time zones
in the Olson Time Zone Database (ref:
http://www.twinsun.com/tz/tz-link.htm).


Other than the use of Chronos to generate the external repository of
Core.TimeZones, there is no other dependency or connection between
Chronos and the 'TimeZone-External Repository-Olson TZDB' package.


With the 'TimeZone-External Repository-Olson TZDB' package installed
(and whether or not Chronos is also installed,) one may retrieve
instances of Core.TimeZone (with correct rules for the current year) as

in the examples below. All the examples retrieve a Core.TimeZone
instance from the external repository using one of the Olson keys, and
then make that instance be the 'reference' (default) TimeZone for
VisualWorks:


(TimeZone at: 'Australia/Sydney') beReference.
(TimeZone at: 'Asia/Tokyo') beReference.
(TimeZone at: 'Australia/Perth') beReference.
(TimeZone at: 'Asia/Calcutta') beReference.
(TimeZone at: 'Europe/Athens') beReference.
(TimeZone at: 'Europe/Berlin') beReference.
(TimeZone at: 'Europe/London') beReference.
(TimeZone at: 'America/New_York') beReference.
(TimeZone at: 'America/Indiana/Indianapolis') beReference.
(TimeZone at: 'America/Chicago') beReference.
(TimeZone at: 'America/Denver') beReference.
(TimeZone at: 'America/Boise') beReference.
(TimeZone at: 'America/Phoenix') beReference.
(TimeZone at: 'America/Los_Angeles') beReference.
(TimeZone at: 'Pacific/Honolulu') beReference.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com