Re: Daylight savings time timezone conversion automatically?

[email protected] ("William Heath")
Newsgroups perl.datetime
Message-ID <[email protected]>
Thanks All,

I think I figured it out, what is important to understand is that you
can't choose EST, you must choose a country/city for the function to
adjust for DST automatically.  My question was probably too simple for
you to give me this solution but I did figure it out.  Does that make
sense to you?

-Tim

On 3/12/08, Dave Rolsky <[email protected]> wrote:
> On Wed, 12 Mar 2008, Rick Measham wrote:
>
> > printf( "%s%02d%02d",
> >       $dt->offset >= 0 ? '+' : '-',
> >       int($dt->offset / 60 / 60),
> >       ($dt->offset / 60) % 60
> > );
>
> or better yet ...
>
>   print DateTime::TimeZone->offset_as_string($offset)
>
>
> -dave
>
>
> /*==========================
> VegGuide.Org
> Your guide to all that's veg
> ==========================*/
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.