Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to convert time from one time zone to another

by robin (Chaplain)
on Dec 19, 2005 at 19:28 UTC ( #517872=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
        local $ENV{TZ} = "EST+05";
    ...
        local $ENV{TZ} = "IST-05:30";
        print "In Mumbai, it is ".localtime()."\n"
    }
    
  2. or download this
    In New York, it is Mon Dec 19 14:25:01 2005
    In Mumbai, it is Tue Dec 20 00:55:01 2005
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2023-12-04 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (21 votes). Check out past polls.

    Notices?