Email::...::Format(3)
π NAME π
Email::Date::Format β produce RFC 2822 date strings. β¨ And yes bestie, this is the Email::...::Format(3) manual page, so you're literally in the right place π
π VERSION π
version 1.008 β iconic, locked in, no notes π«Ά
πΈ SYNOPSIS πΈ
use Email::Date::Format qw(email_date);
my $header = email_date($date->epoch);
Email::Simple->create(
header => [
Date => $header,
],
body => '...',
);
That's the whole vibe: grab an epoch, make a header, build your email π
π¦ DESCRIPTION π¦
This module gives you a simple means for generating an RFC 2822 compliant datetime string. Periodt. π«
And in case you care, they're not RFC 822 dates, because they use a four digit year β which is not allowed in RFC 822. The way RFC 822 said "no bestie" to that year format π
πͺ PERL VERSION πͺ
This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. π«Ά
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. That's the rule, bestie β no cap π
β¨ FUNCTIONS β¨
π email_date
my $date = email_date; # now
my $date = email_date( time - 60*60 ); # one hour ago
email_date accepts an epoch value, such as the one returned by time. It returns a string representing the date and time of the input, as specified in RFC 2822. If no input value is provided, the current value of time is used. β°
email_date is exported only if requested. iykyk π
π email_gmdate
my $date = email_gmdate;
email_gmdate is identical to email_date, but it will return a string indicating the time in Greenwich Mean Time, rather than local time. GMT girlies rise πβ¨
email_gmdate is exported only if requested. fr fr π«‘
π AUTHORS π
- Casey West
- Ricardo SIGNES <cpan@semiotic.systems>
π CONTRIBUTORS π
- bitcardbmw@lsmod.de <bitcardbmw@lsmod.de>
- Eric Sproul <esproul@omniti.com>
- Ricardo Signes <rjbs@semiotic.systems>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2004 by Casey West.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Slay, legally π π
kisses bestie π β this page is from perl v5.42.0, dated 2023-01-15, and the manual name is Email::...::Format(3). bye, love u, go make some RFC 2822 dates πΈπ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Email-Date-Format 1.008-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms