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


SYNOPSIS

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


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.


USAGE

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

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