NAME
DateTime::TimeZone::Local::Win32 - Determine the local system's time zone on Windows
SYNOPSIS
my $tz = DateTime::TimeZone->new( name => 'local' );
my $tz = DateTime::TimeZone::Local->TimeZone();
DESCRIPTION
This module provides methods for determining the local time zone on a Windows platform.
HOW THE TIME ZONE IS DETERMINED
This class tries the following methods of determining the local time zone:
$ENV{TZ}
It checks
$ENV{TZ}
for a valid time zone name.Windows Registry
We check for a registry key called "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\StandardName".
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.
AUTHOR
Dave Rolsky, <autarch@urth.org>
COPYRIGHT & LICENSE
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.