The stupid question is the question not asked | |
PerlMonks |
Re^3: Problem with DateTime subtract_datetimeby runrig (Abbot) |
on Feb 19, 2015 at 17:11 UTC ( [id://1117243]=note: print w/replies, xml ) | Need Help?? |
I get the correct answer, although it's '4 days 11 hours'. Perhaps you should be using 'today()' instead of 'now()' ?
Also, try to write an example that doesn't use today() or now(), and uses fixed dates, so that the example will behave the same tomorrow.
In Section
Seekers of Perl Wisdom
|
|