{
    "content": [
        {
            "type": "text",
            "text": "# Time::gmtime (perldoc)\n\n**Summary:** Time::gmtime - by-name interface to Perl's built-in gmtime() function\n\n**Synopsis:** use Time::gmtime;\n$gm = gmtime();\nprintf \"The day in Greenwich is %s\\n\",\n(qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $gm->wday() ];\nuse Time::gmtime qw(:FIELDS);\ngmtime();\nprintf \"The day in Greenwich is %s\\n\",\n(qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $tmwday ];\n$now = gmctime();\nuse Time::gmtime;\nuse File::stat;\n$datestring = gmctime(stat($file)->mtime);\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (16 lines)\n- **DESCRIPTION** (21 lines)\n- **NOTE** (3 lines)\n- **AUTHOR** (2 lines)\n\n## Full Content\n\n### NAME\n\nTime::gmtime - by-name interface to Perl's built-in gmtime() function\n\n### SYNOPSIS\n\nuse Time::gmtime;\n$gm = gmtime();\nprintf \"The day in Greenwich is %s\\n\",\n(qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $gm->wday() ];\n\nuse Time::gmtime qw(:FIELDS);\ngmtime();\nprintf \"The day in Greenwich is %s\\n\",\n(qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $tmwday ];\n\n$now = gmctime();\n\nuse Time::gmtime;\nuse File::stat;\n$datestring = gmctime(stat($file)->mtime);\n\n### DESCRIPTION\n\nThis module's default exports override the core gmtime() function,\nreplacing it with a version that returns \"Time::tm\" objects. This object\nhas methods that return the similarly named structure field name from\nthe C's tm structure from time.h; namely sec, min, hour, mday, mon,\nyear, wday, yday, and isdst.\n\nYou may also import all the structure fields directly into your\nnamespace as regular variables using the :FIELDS import tag. (Note that\nthis still overrides your core functions.) Access these fields as\nvariables named with a preceding \"tm\" in front their method names.\nThus, \"$tmobj->mday()\" corresponds to $tmmday if you import the\nfields.\n\nThe gmctime() function provides a way of getting at the scalar sense of\nthe original CORE::gmtime() function.\n\nTo access this functionality without the core overrides, pass the \"use\"\nan empty import list, and then access function functions with their full\nqualified names. On the other hand, the built-ins are still available\nvia the \"CORE::\" pseudo-package.\n\n### NOTE\n\nWhile this class is currently implemented using the Class::Struct module\nto build a struct-like class, you shouldn't rely upon this.\n\n### AUTHOR\n\nTom Christiansen\n\n"
        }
    ],
    "structuredContent": {
        "command": "Time::gmtime",
        "section": "",
        "mode": "perldoc",
        "summary": "Time::gmtime - by-name interface to Perl's built-in gmtime() function",
        "synopsis": "use Time::gmtime;\n$gm = gmtime();\nprintf \"The day in Greenwich is %s\\n\",\n(qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $gm->wday() ];\nuse Time::gmtime qw(:FIELDS);\ngmtime();\nprintf \"The day in Greenwich is %s\\n\",\n(qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $tmwday ];\n$now = gmctime();\nuse Time::gmtime;\nuse File::stat;\n$datestring = gmctime(stat($file)->mtime);",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "NOTE",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            }
        ]
    }
}