Clinton Gormley > App-Cerberus-0.10 > App::Cerberus::Plugin::TimeZone

Download:
App-Cerberus-0.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.10   Source  

NAME ^

App::Cerberus::Plugin::TimeZone - Add time-zone information to App::Cerberus

VERSION ^

version 0.10

DESCRIPTION ^

This plugin uses Time::OlsonTZ::Data to add time-zone information to Cerberus. For instance:

    "tz": {
        "short_name": "EDT",
        "name": "America/New_York",
        "dst": "1",
        "gmt_offset": "-14400"
    }

The time-zone is deduced from the IP address, via Geo::IP.

REQUEST PARAMS ^

Time zone information is returned when an IPv4 address is passed in:

    curl http://host:port/?ip=80.1.2.3

CONFIGURATION ^

The GeoIP plugin must be loaded before this plugin. This plugin takes no configuration options:

    plugins:
      - GeoIP:    /opt/geoip/GeoLiteCity.dat
      - TimeZone

AUTHOR ^

Clinton Gormley <drtech@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Clinton Gormley.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: