Hi Dave,

> 
> 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?
> 
> Dave Wrote:
>
> 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?
> 

I kinda figured it would be like that (It does'nt hurt to ask). However,
I was able to figure out what I need to do:

I am using the offset_as_string method from DateTime::TimeZone
module to set it.

Now I just need to figure out how to round either up or down
to the nearest minite. 
I will post the script to the group when I am done :)

Thanks

Ron Hill

Reply via email to