Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Time Zones and Users

by count0 (Friar)
on Jan 10, 2002 at 17:41 UTC ( [id://137809]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: Time Zones and Users
in thread Time Zones and Users

From Time::Zone (which is the same as Time::Timezone iirc):
$TZ = defined($ENV{'TZ'}) ? ( $ENV{'TZ'} ? $ENV{'TZ'} : 'GMT' ) : '' unless $TZ;
Where $TZ is taken as the first argument (to the functions needing a base timezone). =)

So, in other words, you can pass it a value and it does not rely on there being a TZ environment variable.

Replies are listed 'Best First'.
Re: Re: Re: Re: Time Zones and Users
by Torgo (Beadle) on Jan 10, 2002 at 18:02 UTC
    Wow. It would be nice if this module came with some documentation. Am I supposed to differentiate between *st/*dt (ie, weather daylight savings is "on" or "off") or can it do it itself? Looking at the code, I'm guessing it wouldn't help me much in that department.

    --
    I write the code while the master is away!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://137809]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.