Tie::TZ
makes a tied
$TZ
variable in Perl which
ensures
tzset()
is called when changing timezones. This is important if the C library doesn't
notice TZ changes itself before localtime()
etc or if you have
libraries using the global variables like tzname
. See the
online man page (7k, html) for
more.
local $TZ = 'Some/Where';
...
And a Time::TZ
object can represent a TZ setting, with methods to
make calculations in that zone. See the
online man page (8k, html)
for more.
my $zone = Time::TZ->new (tz => 'Some/Where')
Tie-TZ
is
free software (free
as in freedom), published under the terms of the
GNU
General Public License (v3 or higher).
Download version 11 here, the full source here or from CPAN, or a Debian package here or from my repo.
Tie-TZ-11.tar.gz
(43k, and sig)
libtie-tz-perl_11-0.1_all.deb
(16k, and sig)
The sig files are Gnu PG ascii armoured
signatures generated from my key. There's a
SIGNATURE
file inside the .tar.gz
for
cpansign
too. Older sources can be found
at backpan.
This page Copyright 2008, 2009, 2010, 2011, 2013, 2014, 2015, 2016, 2017, 2019, 2020 Kevin Ryde, except for the GPLv3 logo which is Copyright Free Software Foundation and used here in accordance with its terms.