{
    "mode": "perldoc",
    "parameter": "Time::Timezone",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Time%3A%3ATimezone/json",
    "generated": "2026-07-05T13:28:42Z",
    "synopsis": "use Time::Timezone;\nprint tz2zone();\nprint tz2zone($ENV{'TZ'});\nprint tz2zone($ENV{'TZ'}, time());\nprint tz2zone($ENV{'TZ'}, undef, $isdst);\n$offset = tzlocaloffset();\n$offset = tzoffset($TZ);",
    "sections": {
        "NAME": {
            "content": "Time::Timezone -- miscellaneous timezone manipulations routines\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Time::Timezone;\nprint tz2zone();\nprint tz2zone($ENV{'TZ'});\nprint tz2zone($ENV{'TZ'}, time());\nprint tz2zone($ENV{'TZ'}, undef, $isdst);\n$offset = tzlocaloffset();\n$offset = tzoffset($TZ);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a collection of miscellaneous timezone manipulation routines.\n\n\"tz2zone()\" parses the TZ environment variable and returns a timezone string suitable for\ninclusion in date-like output. It optionally takes a timezone string, a time, and a is-dst flag.\n\n\"tzlocaloffset()\" determines the offset from GMT time in seconds. It only does the calculation\nonce.\n\n\"tzoffset()\" determines the offset from GMT in seconds of a specified timezone.\n\n\"tzname()\" determines the name of the timezone based on its offset\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Graham Barr <bodg@tiuk.ti.com> David Muir Sharnoff <muir@idiom.org> Paul Foley <paul@ascent.com>\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "David Muir Sharnoff disclaims any copyright and puts his contribution to this module in the\npublic domain.\n",
            "subsections": []
        }
    },
    "summary": "Time::Timezone -- miscellaneous timezone manipulations routines",
    "flags": [],
    "examples": [],
    "see_also": []
}