DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset


NAME

DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset

Back to Top


SYNOPSIS

  my $offset_tz = DateTime::TimeZone->new( name => '-0300' );

Back to Top


DESCRIPTION

This class is used to provide the DateTime::TimeZone API needed by DateTime.pm, but with a fixed offset. An object in this class always returns the same offset as was given in its constructor, regardless of the date.

Back to Top


USAGE

This class has the same methods as a real time zone object, but the category() method returns undef.

Back to Top

 DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset