DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Create An RFC822 Compliant Date In Perl
use Date::Manip qw(ParseDate UnixDate);
# Create an RFC822 compliant date (current time)
my $rfc822_format = "%a, %d %b %Y %H:%M %Z";
my $today = ParseDate("Now");
my $rfc822_date = UnixDate($today,$rfc822_format);





