Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Counting days with DateTimeby soonix (Canon) |
on Apr 02, 2020 at 08:36 UTC ( [id://11114950]=note: print w/replies, xml ) | Need Help?? |
The duration class is DateTime's way to specify whether your '7' stands for '7 seconds' (as it would be in unix time stamps), or '7 days', '7 years', or other units in between. You'd have to write or, since in the text you you wrote "1 week", not "7 days": instead of that simple 7.
In Section
Seekers of Perl Wisdom
|
|