NAME

App::Chart::TZ -- timezone object

SYNOPSIS

use App::Chart::TZ;
my $timezone = App::Chart::TZ->new (name => 'Some Where',
                                    choose => [ 'abc','def', ]);

print $timezone->name(),"\n";

DESCRIPTION

A App::Chart::TZ object represents a certain timezone. It has a place name and is implemented as a TZ environment variable setting to be used, with a set of TZs to try.

Stock and commodity symbols have an associated timezones, setup by their handler code and then looked up here.

FUNCTIONS

App::Chart::TZ::validate ($obj)

Check that $obj is a App::Chart::TZ object, throw an error if not.

App::Chart::TZ->loco

Return a timezone object representing the local timezone (which means leaving TZ at its initial setting).

App::Chart::TZ->chicago
App::Chart::TZ->london
App::Chart::TZ->newyork
App::Chart::TZ->sydney
App::Chart::TZ->tokyo

Timezone objects for these respective places.

TIMEZONES FOR SYMBOLS

App::Chart::TZ->for_symbol ($symbol)

Return the timezone associated with $symbol.

$timezone->setup_for_symbol ($sympred)

Record $timezone as the timezone for symbols matched by the App::Chart::Sympred object $sympred.