1Email::Date::Format(3)User Contributed Perl DocumentationEmail::Date::Format(3)
2
3
4

NAME

6       Email::Date::Format - produce RFC 2822 date strings
7

VERSION

9       version 1.008
10

SYNOPSIS

12         use Email::Date::Format qw(email_date);
13
14         my $header = email_date($date->epoch);
15
16         Email::Simple->create(
17           header => [
18             Date => $header,
19           ],
20           body => '...',
21         );
22

DESCRIPTION

24       This module provides a simple means for generating an RFC 2822
25       compliant datetime string.  (In case you care, they're not RFC 822
26       dates, because they use a four digit year, which is not allowed in RFC
27       822.)
28

PERL VERSION

30       This library should run on perls released even a long time ago.  It
31       should work on any version of perl released in the last five years.
32
33       Although it may work on older versions of perl, no guarantee is made
34       that the minimum required version will not be increased.  The version
35       may be increased for any reason, and there is no promise that patches
36       will be accepted to lower the minimum required perl.
37

FUNCTIONS

39   email_date
40         my $date = email_date; # now
41         my $date = email_date( time - 60*60 ); # one hour ago
42
43       "email_date" accepts an epoch value, such as the one returned by
44       "time".  It returns a string representing the date and time of the
45       input, as specified in RFC 2822. If no input value is provided, the
46       current value of "time" is used.
47
48       "email_date" is exported only if requested.
49
50   email_gmdate
51         my $date = email_gmdate;
52
53       "email_gmdate" is identical to "email_date", but it will return a
54       string indicating the time in Greenwich Mean Time, rather than local
55       time.
56
57       "email_gmdate" is exported only if requested.
58

AUTHORS

60       •   Casey West
61
62       •   Ricardo SIGNES <cpan@semiotic.systems>
63

CONTRIBUTORS

65       •   bitcardbmw@lsmod.de <bitcardbmw@lsmod.de>
66
67       •   Eric Sproul <esproul@omniti.com>
68
69       •   Ricardo Signes <rjbs@semiotic.systems>
70
72       This software is copyright (c) 2004 by Casey West.
73
74       This is free software; you can redistribute it and/or modify it under
75       the same terms as the Perl 5 programming language system itself.
76
77
78
79perl v5.36.0                      2023-01-21            Email::Date::Format(3)
Impressum