On Tue, Jun 17, 2003 at 09:52:46AM -1000, Joshua Hoblitt wrote: > > Btw - US/Eastern is defined as an alias unless you removed it earler in the program. >
Yeah, that is why I have to jump through more hoops in my example. > How would an add method that returns silently if an alias is already defined tell if > an alias has been redefined somewhere else? It _only_ returns silently if the current definition matches the real timezone of the requested definition: -- my $dta = "DateTime::TimeZone::Alias"; $dta->remove("EST"); # Start with a clean slate $dta->add("EST" => "US/Eastern"); # Succeeds $dta->add("EST" => "US/Eastern"); # Succeeds $dta->add("EST" => "America/New_York"); # Succeeds $dta->add("EST" => "America/Chicago"); # Fails -- > If you mean; [...] > Then say it. Neither are what I mean. Hopefully my example above clarifies things... -ben