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
version 1.86
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.
DateTime::TimeZone::Local::Win32 - Determine the local system's time zone on Windows
This class tries the following methods of determining the local time zone:
$ENV{TZ}
for a valid time zone name.
For each sub key, we compare the value of the key with ``/Std'' appended to the end to the value of ``SYSTEM/CurrentControlSet/Control/TimeZoneInformation/StandardName''. This gives us the English name of the Windows time zone, which we use to look up the IANA time zone name.
Copyright (C) 2007-2014 Dave Rolsky <autarch@urth.org> Copyright (C) 2014-2015 by David Pinkowitz <dapink@cpan.org>
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::Win32 - Determine the local system's time zone on Windows |