DateTime::TimeZone::Local::Win32 - Determine the local system's time zone on Windows |
DateTime::TimeZone::Local::Win32 - Determine the local system's time zone on Windows
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 Windows platform.
This class tries the following methods of determining the local time zone:
$ENV{TZ}
for a valid time zone name.
If this exists, it contains a Windows name for the time zone. We use a lookup table to translate this into an equivalent time zone name.
This lookup table was borrowed from the Chronos Smalltalk library.
Dave Rolsky, <autarch@urth.org>
Copyright (c) 2003-2007 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
DateTime::TimeZone::Local::Win32 - Determine the local system's time zone on Windows |