What is a good Perl module (or good approach) that returns all the valid calendar dates between a start date and an end date?
For example, if I have 1/29/2009 as a start date and 2/3/2009 as an end date then I would like it to return an array of 1/30/2009, 1/31/2009, 2/1/2009, and 2/2/2009. There must be a good Perl module that already does this and accounts for leap years, months, but I can't find it.
Thanks for your suggestions!
DateTime, I've used it many times and it can do pretty much anything you can think of with dates. It handles leap years, leap seconds, invalid dates/times, it can output dates in any format, it can compare, add, subtract, etc...
The only issue is that it might be overkill.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With