1DateTime::TimeZone::LocUasle:r:WCionn3t2r(i3b)uted PerlDDaotceuTmiemnet:a:tTiiomneZone::Local::Win32(3)
2
3
4

NAME

6       DateTime::TimeZone::Local::Win32 - Determine the local system's time
7       zone on Windows
8

VERSION

10       version 1.70
11

SYNOPSIS

13         my $tz = DateTime::TimeZone->new( name => 'local' );
14
15         my $tz = DateTime::TimeZone::Local->TimeZone();
16

DESCRIPTION

18       This module provides methods for determining the local time zone on a
19       Windows platform.
20

HOW THE TIME ZONE IS DETERMINED

22       This class tries the following methods of determining the local time
23       zone:
24
25       ·   $ENV{TZ}
26
27           It checks $ENV{TZ} for a valid time zone name.
28
29       ·   Windows Registry
30
31           When using the registry, we look for the Windows time zone and use
32           a mapping to translate this to an Olson time zone name.
33
34           ·       Windows Vista and 2008
35
36                   We look in
37                   "SYSTEM/CurrentControlSet/Control/TimeZoneInformation/" for
38                   a node named "/TimeZoneKeyName". If this exists, we use
39                   this key to look up the Olson time zone name in our
40                   mapping.
41
42           ·       Windows NT, Windows 2000, Windows XP, Windows 2003 Server
43
44                   We look in "SOFTWARE/Microsoft/Windows
45                   NT/CurrentVersion/Time Zones/" and loop through all of its
46                   sub keys.
47
48                   For each sub key, we compare the value of the key with
49                   "/Std" appended to the end to the value of
50                   "SYSTEM/CurrentControlSet/Control/TimeZoneInformation/StandardName".
51                   This gives us the English name of the Windows time zone,
52                   which we use to look up the Olson time zone name.
53
54           ·       Windows 95, Windows 98, Windows Millenium Edition
55
56                   The algorithm is the same as for NT, but we loop through
57                   the sub keys of
58                   "SOFTWARE/Microsoft/Windows/CurrentVersion/Time Zones/"
59

AUTHOR

61       Dave Rolsky <autarch@urth.org>
62
64       This software is copyright (c) 2014 by Dave Rolsky.
65
66       This is free software; you can redistribute it and/or modify it under
67       the same terms as the Perl 5 programming language system itself.
68
69
70
71perl v5.16.3                      2014-06-01DateTime::TimeZone::Local::Win32(3)
Impressum