{
    "mode": "perldoc",
    "parameter": "DateTime::TimeZone::OffsetOnly",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/DateTime%3A%3ATimeZone%3A%3AOffsetOnly/json",
    "generated": "2026-10-09T12:17:41Z",
    "synopsis": "my $offsettz = DateTime::TimeZone->new( name => '-0300' );",
    "sections": {
        "NAME": {
            "content": "DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.62\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $offsettz = DateTime::TimeZone->new( name => '-0300' );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class is used to provide the DateTime::TimeZone API needed by DateTime.pm, but with a fixed\noffset. An object in this class always returns the same offset as was given in its constructor,\nregardless of the date.\n",
            "subsections": []
        },
        "USAGE": {
            "content": "This class has the same methods as a real time zone object, but the category() method returns\nundef.\n\nDateTime::TimeZone::OffsetOnly->new ( offset => $offset )\nThe value given to the offset parameter must be a string such as \"+0300\". Strings will be\nconverted into numbers by the DateTime::TimeZone::offsetasseconds() function.\n\n$tz->offsetfordatetime( $datetime )\nNo matter what date is given, the offset provided to the constructor is always used.\n\n$tz->name()\n$tz->shortnamefordatetime()\nBoth of these methods return the offset in string form.\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "Bugs may be submitted at <https://github.com/houseabsolute/DateTime-TimeZone/issues>.\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for DateTime-TimeZone can be found at\n<https://github.com/houseabsolute/DateTime-TimeZone>.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Dave Rolsky <autarch@urth.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2024 by Dave Rolsky.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n\nThe full text of the license can be found in the LICENSE file included with this distribution.\n",
            "subsections": []
        }
    },
    "summary": "DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset",
    "flags": [],
    "examples": [],
    "see_also": []
}