{
    "mode": "perldoc",
    "parameter": "Email::Date::Format",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Email%3A%3ADate%3A%3AFormat/json",
    "generated": "2026-09-10T00:11:45Z",
    "synopsis": "use Email::Date::Format qw(emaildate);\nmy $header = emaildate($date->epoch);\nEmail::Simple->create(\nheader => [\nDate => $header,\n],\nbody => '...',\n);",
    "sections": {
        "NAME": {
            "content": "Email::Date::Format - produce RFC 2822 date strings\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 1.008\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Email::Date::Format qw(emaildate);\n\nmy $header = emaildate($date->epoch);\n\nEmail::Simple->create(\nheader => [\nDate => $header,\n],\nbody => '...',\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provides a simple means for generating an RFC 2822 compliant datetime string. (In\ncase you care, they're not RFC 822 dates, because they use a four digit year, which is not\nallowed in RFC 822.)\n",
            "subsections": []
        },
        "PERL VERSION": {
            "content": "This library should run on perls released even a long time ago. It should work on any version of\nperl released in the last five years.\n\nAlthough it may work on older versions of perl, no guarantee is made that the minimum required\nversion will not be increased. The version may be increased for any reason, and there is no\npromise that patches will be accepted to lower the minimum required perl.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "emaildate\nmy $date = emaildate; # now\nmy $date = emaildate( time - 60*60 ); # one hour ago\n\n\"emaildate\" accepts an epoch value, such as the one returned by \"time\". It returns a string\nrepresenting the date and time of the input, as specified in RFC 2822. If no input value is\nprovided, the current value of \"time\" is used.\n\n\"emaildate\" is exported only if requested.\n\nemailgmdate\nmy $date = emailgmdate;\n\n\"emailgmdate\" is identical to \"emaildate\", but it will return a string indicating the time in\nGreenwich Mean Time, rather than local time.\n\n\"emailgmdate\" is exported only if requested.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   Casey West\n\n*   Ricardo SIGNES <cpan@semiotic.systems>\n",
            "subsections": []
        },
        "CONTRIBUTORS": {
            "content": "*   bitcardbmw@lsmod.de <bitcardbmw@lsmod.de>\n\n*   Eric Sproul <esproul@omniti.com>\n\n*   Ricardo Signes <rjbs@semiotic.systems>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2004 by Casey West.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "Email::Date::Format - produce RFC 2822 date strings",
    "flags": [],
    "examples": [],
    "see_also": []
}