Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added rfc2822() function.

  • Loading branch information...
commit e3856a09c7fa363940563167ae2d8580cc3cf4ef 1 parent c4f3931
@supernovus authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/DateTime/Utils.pm
View
5 lib/DateTime/Utils.pm
@@ -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);
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.