{
    "mode": "perldoc",
    "parameter": "Email::Date::Format",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Email%3A%3ADate%3A%3AFormat/json",
    "generated": "2026-06-13T20:06:44Z",
    "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.005\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": []
        },
        "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 <rjbs@cpan.org>\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": []
}