Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by robin (Chaplain)
on Dec 19, 2005 at 19:28 UTC ( [id://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 sharing their wisdom with the Monastery: (6)
As of 2024-03-28 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found