Permalink
Browse files

Added rfc2822() function.

  • Loading branch information...
1 parent c4f3931 commit e3856a09c7fa363940563167ae2d8580cc3cf4ef @supernovus committed Aug 30, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/DateTime/Utils.pm
View
@@ -92,5 +92,10 @@ module DateTime::Utils {
}
}
+ # Pulled from Perlite::Time, introducing rfc2822 datestamps.
+ sub rfc2822(DateTime $dt=DateTime.now) is export(:DEFAULT) {
+ strftime('%a, %d %b %Y %T %z', $dt);
+ }
+
}

0 comments on commit e3856a0

Please sign in to comment.