Subject: | %k pads hours with a space instead of not padding at all |
Please see attached file for a test case.
Also, there's a typo in the documentation: "vslues"
Finally, it would be very useful to have a way of not displaying the
leading zero values, e.g.
"0 years, 00 months, 0 days, 0 hours, 01 minutes, 40 seconds"
should just be displayed as
"1 minute, 40 seconds"
Subject: | dateTime_Format_Duration_bug.pl |
#!/usr/local/bin/perl -w
use strict;
use DateTime::Format::Duration;
my $d = DateTime::Format::Duration->new(
pattern => '<%k> hours'
);
print $d->format_duration(
DateTime::Duration->new(
hours => 6,
)
); # will print '< 6> hours' instead of '<6> hours'