{
    "mode": "perldoc",
    "parameter": "Mail::Field::Date",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Mail%3A%3AField%3A%3ADate/json",
    "generated": "2026-07-05T13:45:00Z",
    "synopsis": "use HTTP::Date 'time2iso';\nmy $field = Mail::Field->new(Date => time2iso());",
    "sections": {
        "NAME": {
            "content": "Mail::Field::Date - a date header field\n",
            "subsections": []
        },
        "INHERITANCE": {
            "content": "Mail::Field::Date\nis a Mail::Field\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use HTTP::Date 'time2iso';\nmy $field = Mail::Field->new(Date => time2iso());\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Represents one \"Date\" header field.\n\nExtends \"DESCRIPTION\" in Mail::Field.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Extends \"METHODS\" in Mail::Field.\n",
            "subsections": [
                {
                    "name": "Constructors",
                    "content": "Extends \"Constructors\" in Mail::Field.\n\nMail::Field::Date->combine($fields)\nInherited, see \"Constructors\" in Mail::Field\n\nMail::Field::Date->extract( $tag, $head [, $index ] )\nInherited, see \"Constructors\" in Mail::Field\n\nMail::Field::Date->new( $tag [, STRING | %options] )\nInherited, see \"Constructors\" in Mail::Field\n\n\"Fake\" constructors\nExtends \"\"Fake\" constructors\" in Mail::Field.\n\n$obj->create(%options)\nInherited, see \"\"Fake\" constructors\" in Mail::Field\n\n$obj->parse()\nInherited, see \"\"Fake\" constructors\" in Mail::Field\n"
                },
                {
                    "name": "Accessors",
                    "content": "Extends \"Accessors\" in Mail::Field.\n\n$obj->set(%options)\n-Option --Default\nTime     undef\nTimeStr  undef\n\nTime => SECONDS\nTimeStr => STRING\nA string acceptable to Date::Parse.\n\n$obj->stringify()\nInherited, see \"Accessors\" in Mail::Field\n\n$obj->tag()\nMail::Field::Date->tag()\nInherited, see \"Accessors\" in Mail::Field\n"
                },
                {
                    "name": "Smart accessors",
                    "content": "Extends \"Smart accessors\" in Mail::Field.\n\n$obj->text( [STRING] )\nInherited, see \"Smart accessors\" in Mail::Field\n\n$obj->time( [$time] )\nQuery (or change) the $time (as stored in the field) in seconds.\n"
                }
            ]
        },
        "DETAILS": {
            "content": "Extends \"DETAILS\" in Mail::Field.\n",
            "subsections": []
        },
        "DIAGNOSTICS": {
            "content": "Error: Undefined subroutine <method> called\nMail::Field objects use autoloading to compile new functionality. Apparently, the method\ncalled is not implemented for the specific class of the field object.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "This module is part of the MailTools distribution, http://perl.overmeer.net/mailtools/.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance\nwithout commitment to further development.\n\nMail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by Peter Orbaek <poe@cit.dk>.\nMail::Mailer and Mail::Send by Tim Bunce <Tim.Bunce@ig.co.uk>. For other contributors see\nChangeLog.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2017 Mark Overmeer\n<perl@overmeer.net>.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself. See http://www.perl.com/perl/misc/Artistic.html\n",
            "subsections": []
        }
    },
    "summary": "Mail::Field::Date - a date header field",
    "flags": [],
    "examples": [],
    "see_also": []
}