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 ( #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? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-09-25 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?