DateTime::TimeZone::Local::Unix - Determine the local system's time zone on Unix |
DateTime::TimeZone::Local::Unix - Determine the local system's time zone on Unix
version 1.97
my $tz = DateTime::TimeZone->new( name => 'local' );
my $tz = DateTime::TimeZone::Local->TimeZone();
This module provides methods for determining the local time zone on a Unix platform.
This class tries the following methods of determining the local time zone:
$ENV{TZ}
for a valid time zone name.
Some systems just copy the relevant file to /etc/localtime instead of making a symlink. In this case, we look in /usr/share/zoneinfo for a file that has the same size and content as /etc/localtime to determine the local time zone.
Bugs may be submitted through the RT bug tracker (or bug-datetime-timezone@rt.cpan.org).
I am also usually active on IRC as 'drolsky' on irc://irc.perl.org
.
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2016 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DateTime::TimeZone::Local::Unix - Determine the local system's time zone on Unix |