GPLv3

Tie-TZ

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've got libraries accessing the global variables like tzname. See the online man page (8k, 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 (9k, 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 9 here, the full source here or from CPAN, or a Debian package here or from my repo.

Tie-TZ-9.tar.gz (42k, and sig)
libtie-tz-perl_9-1_all.deb (18k, 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 Kevin Ryde, except for the GPLv3 logo which is Copyright Free Software Foundation and used here in accordance with its terms.

(Back to the sitemap.)