On Wed, 5 Nov 2003, Hill, Ronald wrote: > I have recently updated the test scripts for the > Astro::Sunrise module and would like to incorporate these > changes into the DateTime::Event::Sunrise test suite. However, > I am unable to map an offset into a datetime timezone. Is > there a way to take an offset say -8 hours and look this up > and know that this is America/Los_Angeles timezone?
No, because there's plenty of timezones for every offset. For example, at -08:00 base offset from UTC we have America/Los_Angeles, America/Juneau, America/Whitehorse, America/Dawson, America/Tijuana, and America/Vancouver. So which one of those corresponds to -8 hours? -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/