Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

TimeZoning oddities

by JPaul (Hermit)
on Nov 01, 2005 at 22:49 UTC ( [id://504771]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ENV{TZ} = "America/New_York";
    my $now_string = strftime "%a %b %e %H:%M:%S %Y %c", localtime;
    print "$now_string\n";
    
  2. or download this
    $ENV{TZ} = "America/Chicago";
    my $now_string = strftime "%a %b %e %H:%M:%S %Y %c", localtime;
    ...
    $ENV{TZ} = "America/New_York";
    $now_string = strftime "%a %b %e %H:%M:%S %Y %c", localtime;
    print "$now_string\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-28 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found