{
    "mode": "perldoc",
    "parameter": "DateTime::Format::Builder::Parser::Quick",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/DateTime%3A%3AFormat%3A%3ABuilder%3A%3AParser%3A%3AQuick/json",
    "generated": "2026-10-09T19:35:07Z",
    "synopsis": "use DateTime::Format::Builder (\nparsers => {\nparsedatetime => [\n{ Quick => 'DateTime::Format::HTTP' },\n{ Quick => 'DateTime::Format::Mail' },\n{ Quick => 'DateTime::Format::IBeat' },\n]\n}\n);\n# is the same as\nuse DateTime::Format::HTTP;\nuse DateTime::Format::Mail;\nuse DateTime::Format::IBeat;\nuse DateTime::Format::Builder (\nparsers => {\nparsedatetime => [\nsub {\neval { DateTime::Format::HTTP->parsedatetime( $[1] ) }\n},\nsub {\neval { DateTime::Format::Mail->parsedatetime( $[1] ) }\n},\nsub {\neval { DateTime::Format::IBeat->parsedatetime( $[1] ) }\n},\n]\n}\n);\n(These two pieces of code can both be found in the test suite; one as quick.t, the other as\nfall.t.)",
    "sections": {
        "NAME": {
            "content": "DateTime::Format::Builder::Parser::Quick - Use another formatter, simply\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 0.83\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use DateTime::Format::Builder (\nparsers => {\nparsedatetime => [\n{ Quick => 'DateTime::Format::HTTP' },\n{ Quick => 'DateTime::Format::Mail' },\n{ Quick => 'DateTime::Format::IBeat' },\n]\n}\n);\n\n# is the same as\n\nuse DateTime::Format::HTTP;\nuse DateTime::Format::Mail;\nuse DateTime::Format::IBeat;\n\nuse DateTime::Format::Builder (\nparsers => {\nparsedatetime => [\nsub {\neval { DateTime::Format::HTTP->parsedatetime( $[1] ) }\n},\nsub {\neval { DateTime::Format::Mail->parsedatetime( $[1] ) }\n},\nsub {\neval { DateTime::Format::IBeat->parsedatetime( $[1] ) }\n},\n]\n}\n);\n\n(These two pieces of code can both be found in the test suite; one as quick.t, the other as\nfall.t.)\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Quick\" adds a parser that allows some shortcuts when writing fairly standard and mundane calls\nto other formatting modules.\n",
            "subsections": []
        },
        "SPECIFICATION": {
            "content": "\"Quick\" has two keys, one optional.\n\nThe \"Quick\" keyword should have an argument of either an object or a class name. If it's a class\nname then the class is \"use\"d.\n\nThe \"method\" keyword is optional with a default of \"parsedatetime\". It's either name of the\nmethod to invoke on the object, or a reference to a piece of code.\n\nIn any case, the resultant code ends up looking like:\n\nmy $rv = $Quick->$method($date);\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "\"datetime@perl.org\" mailing list.\n\nhttp://datetime.perl.org/\n\nperl, DateTime, DateTime::Format::Builder\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "Bugs may be submitted at <https://github.com/houseabsolute/DateTime-Format-Builder/issues>.\n\nI am also usually active on IRC as 'autarch' on \"irc://irc.perl.org\".\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for DateTime-Format-Builder can be found at\n<https://github.com/houseabsolute/DateTime-Format-Builder>.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   Dave Rolsky <autarch@urth.org>\n\n*   Iain Truskett <spoon@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2020 by Dave Rolsky.\n\nThis is free software, licensed under:\n\nThe Artistic License 2.0 (GPL Compatible)\n\nThe full text of the license can be found in the LICENSE file included with this distribution.\n",
            "subsections": []
        }
    },
    "summary": "DateTime::Format::Builder::Parser::Quick - Use another formatter, simply",
    "flags": [],
    "examples": [],
    "see_also": []
}