We don't bite newbies here... much | |
PerlMonks |
Re: How do I find the difference in days between two dates, in a cool perl way?by talexb (Chancellor) |
on Apr 21, 2016 at 14:07 UTC ( [id://1161090]=note: print w/replies, xml ) | Need Help?? |
Use the utc_rd_values method in DateTime to get the day number of the date you're looking at:
Now $delta contains the number of days between the two dates.
In Section
Seekers of Perl Wisdom
|
|