NAME
Time::Zone::Olson::Win32 - Provides methods to allow Time::Zone::Olson to use the Windows Registry to determine time zones
VERSION
Version 0.13
SYNOPSIS
use Time::Zone::Olson();
my $time_zone = Time::Zone::Olson->new( timezone => 'Australia/Melbourne' ); # set timezone at creation time
my $now = $time_zone->time_local($seconds, $minutes, $hours, $day, $month, $year); # convert from Australia/Melbourne time
foreach my $area ($time_zone->areas()) {
foreach my $location ($time_zone->locations($area)) {
$time_zone->timezone("$area/$location");
print scalar $time_zone->local_time($now); # output time in $area/$location local time
warn scalar localtime($now) . " log message for sysadmin"; # but log in system local time
}
}
DESCRIPTION
Time::Zone::Olson::Win32 allows Time::Zone::Olson to run on Windows nodes that do not have an Olson database available.
SUBROUTINES/METHODS
mapping
Time::Zone::Olson->mapping() will return a hash containing the mapping between Windows time zones and Olson time zones.
DIAGNOSTICS
Failed to close %s:%s
-
There has been an error while reading or closing the designated registry entry
Failed to open %s:%s
-
There has been an error while opening the the designated registry entry.
Failed to read from %s:%s
-
There has been an file system error while reading from the registry.
CONFIGURATION AND ENVIRONMENT
Time::Zone::Olson::Win32 requires no configuration files or environment variables.
DEPENDENCIES
INCOMPATIBILITIES
None reported
BUGS AND LIMITATIONS
Please report any bugs or feature requests to bug-time-zone-olson at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Time-Zone-Olson. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SEE ALSO
AUTHOR
David Dick, <ddick at cpan.org>
LICENSE AND COPYRIGHT
Copyright 2019 David Dick.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.