The problem with Time::Timezone is that it relies on the
$ENV{TZ} variable, which (as far as I can tell) relies on the /usr/share/zoneinfo
files.
-- I write the code while the master is away!
| [reply] |
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.
| [reply] [d/l] |
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!
| [reply] |