DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset |
DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset
my $offset_tz = DateTime::TimeZone->new( name => '-0300' );
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.
This class has the same methods as a real time zone object, but the
category()
method returns undef.
DateTime::TimeZone::offset_as_seconds()
function.
short_name_for_datetime()
DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset |