Just another Perl shrine | |
PerlMonks |
Re: A DateTime penance has befallen meby ikegami (Patriarch) |
on Oct 22, 2007 at 18:08 UTC ( [id://646524]=note: print w/replies, xml ) | Need Help?? |
I suspect $duration->days() returns the *portion* of the duration that is measured in days. I think you want $duration->in_units('days').
In Section
Seekers of Perl Wisdom
|
|