{
    "mode": "perldoc",
    "parameter": "Time::Zone",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Time%3A%3AZone/json",
    "generated": "2026-06-12T00:33:41Z",
    "synopsis": "use Time::Zone;\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::Zone -- miscellaneous timezone manipulations routines\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Time::Zone;\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(1)-like output. It opionally takes a timezone string, a time, and a is-dst\nflag.\n\n\"tzlocaloffset()\" determins 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 <gbarr@pobox.com> David Muir Sharnoff <muir@idiom.com> Paul Foley <paul@ascent.com>\n",
            "subsections": []
        }
    },
    "summary": "Time::Zone -- miscellaneous timezone manipulations routines",
    "flags": [],
    "examples": [],
    "see_also": []
}