1DateTime::TimeZone::OffUsseetrOnCloyn(t3r)ibuted Perl DoDcautmeeTnitmaet:i:oTnimeZone::OffsetOnly(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

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

USAGE

19       This class has the same methods as a real time zone object, but the
20       "category()" method returns undef.
21
22   DateTime::TimeZone::OffsetOnly->new ( offset => $offset )
23       The value given to the offset parameter must be a string such as
24       "+0300".  Strings will be converted into numbers by the
25       "DateTime::TimeZone::offset_as_seconds()" function.
26
27   $tz->offset_for_datetime( $datetime )
28       No matter what date is given, the offset provided to the constructor is
29       always used.
30
31   $tz->name()
32   $tz->short_name_for_datetime()
33       Both of these methods return the offset in string form.
34

AUTHOR

36       Dave Rolsky, <autarch@urth.org>
37
39       Copyright (c) 2003-2008 David Rolsky.  All rights reserved.  This
40       program is free software; you can redistribute it and/or modify it
41       under the same terms as Perl itself.
42
43       The full text of the license can be found in the LICENSE file included
44       with this module.
45
46
47
48perl v5.10.1                      2017-03-21 DateTime::TimeZone::OffsetOnly(3)
Impressum