Re: Daylight savings time timezone conversion automatically?

[email protected] (Dave Rolsky)
Newsgroups perl.datetime
Message-ID <[email protected]>
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.