{
    "content": [
        {
            "type": "text",
            "text": "# DateTime::Format::W3CDTF (perldoc)\n\n## NAME\n\nDateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings\n\n## SYNOPSIS\n\nuse DateTime::Format::W3CDTF;\nmy $w3c = DateTime::Format::W3CDTF->new(strict => 1);\nmy $dt = $w3c->parsedatetime( '2003-02-15T13:50:05-05:00' );\n# 2003-02-15T13:50:05-05:00\n$w3c->formatdatetime($dt);\n\n## DESCRIPTION\n\nThis module understands the W3CDTF date/time format, an ISO 8601 profile, defined at\nhttp://www.w3.org/TR/NOTE-datetime. This format as the native date format of RSS 1.0.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SUPPORT**\n- **AUTHOR**\n- **CREDITS**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "DateTime::Format::W3CDTF",
        "section": "",
        "mode": "perldoc",
        "summary": "DateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings",
        "synopsis": "use DateTime::Format::W3CDTF;\nmy $w3c = DateTime::Format::W3CDTF->new(strict => 1);\nmy $dt = $w3c->parsedatetime( '2003-02-15T13:50:05-05:00' );\n# 2003-02-15T13:50:05-05:00\n$w3c->formatdatetime($dt);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "SUPPORT",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "CREDITS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "DateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings\n",
                "subsections": []
            },
            "VERSION": {
                "content": "This document describes DateTime::Format::W3CDTF version 0.08\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use DateTime::Format::W3CDTF;\n\nmy $w3c = DateTime::Format::W3CDTF->new(strict => 1);\nmy $dt = $w3c->parsedatetime( '2003-02-15T13:50:05-05:00' );\n\n# 2003-02-15T13:50:05-05:00\n$w3c->formatdatetime($dt);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module understands the W3CDTF date/time format, an ISO 8601 profile, defined at\nhttp://www.w3.org/TR/NOTE-datetime. This format as the native date format of RSS 1.0.\n\nIt can be used to parse these formats in order to create the appropriate objects.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "This API is currently experimental and may change in the future.\n\n*   new()\n\nReturns a new W3CDTF parser object. Accepts a single \"strict\" option:\n\nDateTime::Format::W3CDTF->new(strict => 1);\n\nIf true, parsedatetime() and formatdatetime() will only accept and return strings in\nW3CDTF format, respectively. In particular, the W3CDTF format requires all time components\nto have timezones.\n\nIf false, timezones are optional.\n\n*   parsedatetime($string)\n\nGiven a W3CDTF datetime string, this method will return a new \"DateTime\" object.\n\nIf given an improperly formatted string, this method may die.\n\n*   formatdatetime($datetime)\n\nGiven a \"DateTime\" object, this methods returns a W3CDTF datetime string.\n\nNOTE: As of version 0.4, formatdatetime no longer attempts to truncate datetimes without a\ntime component. This is due to the fact that \"DateTime\" doesn't distinguish between a date\nwith no time component, and midnight.\n\n*   formatdate($datetime)\n\nGiven a \"DateTime\" object, return a W3CDTF datetime string without the time component.\n",
                "subsections": []
            },
            "SUPPORT": {
                "content": "Support for this module is provided via the datetime@perl.org email list. See\nhttp://datetime.perl.org/?MailingList for details.\n\nPlease submit bugs to the CPAN RT system at\nhttp://rt.cpan.org/NoAuth/ReportBug.html?Queue=datetime-format-w3cdtf or via email at\nbug-datetime-format-w3cdtf@rt.cpan.org.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Dave Rolsky <autarch@urth.org>\n",
                "subsections": []
            },
            "CREDITS": {
                "content": "This module is maintained by Gregory Todd Williams <gwilliams@cpan.org>. It was originally\ncreated by Kellan Elliott-McCrea <kellan@protest.net>.\n\nThis module was inspired by DateTime::Format::ICal\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (c) 2009 David Rolsky. All rights reserved. This program is free software; you can\nredistribute it and/or modify it under the same terms as Perl itself.\n\nCopyright (c) 2003 Kellan Elliott-McCrea\n\nPortions of the code in this distribution are derived from other works. Please see the CREDITS\nfile for more details.\n\nThe full text of the license can be found in the LICENSE file included with this module.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "datetime@perl.org mailing list\n\nhttp://datetime.perl.org/\n",
                "subsections": []
            }
        }
    }
}