2 Star 0 Fork 0

mirrors_gitpan/DateTime-TimeZone-Local-Win32

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
NAME

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

VERSION

    version 1.80

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.

NAME

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

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

      When using the registry, we look for the Windows time zone and use a
      mapping to translate this to an Olson time zone name.

	* Windows Vista and 2008

	We look in "SYSTEM/CurrentControlSet/Control/TimeZoneInformation/"
	for a node named "/TimeZoneKeyName". If this exists, we use this
	key to look up the Olson time zone name in our mapping.

	* Windows NT, Windows 2000, Windows XP, Windows 2003 Server

	We look in "SOFTWARE/Microsoft/Windows NT/CurrentVersion/Time
	Zones/" and loop through all of its sub keys.

	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 Olson time zone name.

	* Windows 95, Windows 98, Windows Millenium Edition

	The algorithm is the same as for NT, but we loop through the sub
	keys of "SOFTWARE/Microsoft/Windows/CurrentVersion/Time Zones/"

AUTHORS

      * David Pinkowitz <dapink@cpan.org>

      * Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

    Copyright (C) 2007-2014 Dave Rolsky <autarch@urth.org> Copyright (C)
    2014 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.

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_gitpan/DateTime-TimeZone-Local-Win32.git
git@gitee.com:mirrors_gitpan/DateTime-TimeZone-Local-Win32.git
mirrors_gitpan
DateTime-TimeZone-Local-Win32
DateTime-TimeZone-Local-Win32
master

搜索帮助