WWW::GoKGS::Scraper::TzList - KGS Time Zone Selector
use WWW::GoKGS::Scraper::TzList; my $tz_list = WWW::GoKGS::Scraper::TzList->new; my $result = $tz_list->query( tz => 'Asia/Tokyo' ); # => { # current_time_zone => { # name => 'Asia/Tokyo', # display_name => 'Japan Standard Time' # }, # time_zones => [ # { # name => 'America/Anchorage', # display_name => 'Alaska Standard Time' # }, # ... # ] # }
This class inherits from WWW::GoKGS::Scraper.
# => "http://www.gokgs.com/tzList.jsp"
Given key-value pairs of query parameters, constructs a URI object which consists of base_uri and the parameters.
base_uri
Can be used to get or set an LWP::UserAgent object which is used to GET the requested resource. Defaults to the LWP::UserAgent object shared by Web::Scraper users ($Web::Scraper::UserAgent).
GET
LWP::UserAgent
$Web::Scraper::UserAgent
Returns a hash reference which contains your current time zone and a list of available time zones. The hashref is formatted as follows:
{ current_time_zone => { name => 'Asia/Tokyo', display_name => 'Japan Standard Time' }, time_zones => [ { name => 'America/Anchorage', display_name => 'Alaska Standard Time' }, ... ] }
Can be used to set your time zone. The time zone must be included by the list of time zones. HTTP cookies must be accepted by your user agent. All the KGS web pages are affected by the cookie setting, i.e., times for games are shown in the specified time zone. In other words, all the KGS resources will become stateful. If you dislike this behaviour, do not change the default time zone, GMT.
Returns a hash reference which contains your current time zone and a list of available time zones.
WWW::GoKGS
Ryo Anazawa (anazawa@cpan.org)
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install WWW::GoKGS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::GoKGS
CPAN shell
perl -MCPAN -e shell install WWW::GoKGS
For more information on module installation, please visit the detailed CPAN module installation guide.