Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

How to get TZ difference?

by dda (Friar)
on Jun 28, 2003 at 10:37 UTC ( [id://269845]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    print "std: $std\n";
    print "dst: $dst\n";
    print "TZ: " . ($ENV{TZ} || "Unset") . "\n";
    
  2. or download this
    on Win32 machine:
     std: Russian Standard Time
    ...
     std: GMT
     dst: GMT
     TZ: Unset
    
  3. or download this
    <?php
    $stz = date("Z");
    echo $stz/60/60;
    ?>
    

Log In?
Username:
Password:

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

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

    No recent polls found