[OGo-Users] Updated Time zone info?

John Ross users@opengroupware.org
Sun, 18 Feb 2007 12:14:21 -0500 (EST)


On Sun, 18 Feb 2007, Adam Williams wrote:

> On Fri, 2007-02-16 at 17:16 -0500, Adam Tauno Williams wrote:
>Here is a question:  Is it appropriate to edit EST to show the new
>daylight savings change for USA/Canada/Bermuda?  Do any other regions
>use "EST" that do not subscribe to this change?

There are always exceptions.
Atikokan Ontario, Southampton Nunavut, Coral Harbour, Cayman Is, Jamaica, 
and Panama don't observe DST at all, and just keep their clocks on EST.

Haiti and Turks and Caicos still change their clocks First Sunday in 
April, and last Sunday in October.

...at least that's the state of things for 2007. There seem to be changes 
every year.

> Is there a way to specify "all years prior to 2007" and "all years
> subsequent to 2006"?  Or should I just enter the new DST change for
> 2007 ... 2032 individually?

I think something like this:


{
     details = {
         EDT = {abbrev = EDT; isDST = 1; offset = "-4:00:00"; };
         EST = {abbrev = EST; isDST = 0; offset = "-5:00:00"; };
     };
     rules = (
         {
             startDate = "Sun Apr 27 09:00:00 1969 GMT";
             endDate = "Sun Oct 26 08:00:00 1986 GMT";
             transitions = (
                 { date = "April/last Sunday/9:00:00"; detail = EDT; },
                 { date = "October/last Sunday/8:00:00"; detail = EST; }
             );
         },
         {
             startDate = "Sun Apr 05 09:00:00 1987 GMT";
             endDate = "Sun Oct 25 08:00:00 2006 GMT";
             transitions = (
                 { date = "April/first Sunday/9:00:00"; detail = EDT; },
                 { date = "October/last Sunday/8:00:00"; detail = EST; }
             );
         }
         {
             startDate = "Sun March 09:00:00 2007 GMT";
             endDate = "Sun Oct 25 08:00:00 2037 GMT";
             transitions = (
                 { date = "March/second Sunday/9:00:00"; detail = EDT; },
                 { date = "November/first Sunday/8:00:00"; detail = EST; }
             );
         }

     );
}


Time zones are complicated (There are actually around 400 time zones - 
each eith their own set of rules)

I'm working on a script to change the files from 
ftp://elsie.nci.nih.gov/pub/ into the libFoundation format. I don't want 
to have to make all these changes by hand.

-- 
John Ross
jhr@fenks.org

There's plenty of room for all God's creatures.
Right next to the mashed potatoes.
 	- Billboard ad for Saskatoon Restaurant
 		Greenville, SC