NAME

Net::API::Stripe::TimeZone - A Time Zone Object

SYNOPSIS

# or one can pass just 'local' just like for DateTime::TineZone
my $tz = $stripe->account->settings->dashboard->timezone( 'Asia/Tokyo' );
print( $tz->name, "\n" );
# Asia/Tokyo
print( "Time zone is $tz\n" );
# produces: Time zone is Asia/Tokyo

my $tz2 = $stripe->account->settings->dashboard->timezone( 'local' );
print( "$tz is same as $tz2? ", $tz eq $tz2 ? 'yes' : 'no', "\n" );

VERSION

v0.100.1

DESCRIPTION

This is a wrapper around DateTime::TimeZone to provide stringification. Net::API::Stripe::TimeZone does not inherit from DateTime::TimeZone but all method of DateTime::TimeZone are accessible via the module AUTOLOAD

CONSTRUCTOR

new( hash init, timezone )

Creates a new Net::API::Stripe::TimeZone object.

METHODS

name

This is read only. It returns the current value of the time zone.

For all other methods, see the manual page of DateTime::TimeZone

HISTORY

v0.1

Initial version

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Stripe API documentation:

DateTime::TimeZone

COPYRIGHT & LICENSE

Copyright (c) 2019-2020 DEGUEST Pte. Ltd.

You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.