diff --git a/CREDITS b/CREDITS index b35c7d17911..2ca7fed4758 100644 --- a/CREDITS +++ b/CREDITS @@ -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 diff --git a/lib/DateTime/strftime.pm b/lib/DateTime/strftime.pm index 677641a0c99..7986e302c74 100644 --- a/lib/DateTime/strftime.pm +++ b/lib/DateTime/strftime.pm @@ -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 ~~ / ^ (<-['%']>*) '%' (.)(.*) $ / {