Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Converting UTC with Olsen -> Localtime

by rhesa (Vicar)
on Sep 15, 2008 at 16:21 UTC ( #711498=note: print w/replies, xml ) Need Help??


in reply to Converting UTC with Olsen -> Localtime

use DateTime:
# assuming your server's localtime is in UTC my $local = DateTime->now->set_time_zone( $olson_name );

Replies are listed 'Best First'.
Re^2: Converting UTC with Olsen -> Localtime
by brancusi (Novice) on Sep 15, 2008 at 16:28 UTC
    Argh! I knew it had to be simple! Many thanks rhesa.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://711498]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2020-09-28 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (144 votes). Check out past polls.

    Notices?