Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added %z to DateTime::strftime.

Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information...
commit a787329ce7381be5f9e19e5cf0fe423a795ff22d 1 parent e3ba686
Timothy Totten supernovus authored moritz committed
Showing with 8 additions and 1 deletion.
  1. +6 −0 CREDITS
  2. +2 −1  lib/DateTime/strftime.pm
6 CREDITS
View
@@ -329,6 +329,12 @@ U: tene
D: Minor Rakudo patches
E: tene@allalone.org
+N: Timothy Totten
+U: novus
+D: Temporal (DateTime/Date) modifications
+E: supernovus@gmail.com
+W: http://huri.net/
+
N: Tyler Curtis
U: tcurtis
D: $*ARGFILES
3  lib/DateTime/strftime.pm
View
@@ -41,7 +41,8 @@ module DateTime::strftime {
'%' => { '%' },
'3' => { (($dt.second % 1)*1000).fmt('%03d') },
'6' => { (($dt.second % 1)*1000000).fmt('%06d') },
- '9' => { (($dt.second % 1)*1000000000).fmt('%09d') }
+ '9' => { (($dt.second % 1)*1000000000).fmt('%09d') },
+ 'z' => { $dt.timezone }
;
my $result = '';
while $format ~~ / ^ (<-['%']>*) '%' (.)(.*) $ / {
Please sign in to comment.
Something went wrong with that request. Please try again.