Use the Date::Calc function in Perl
How to use the Date::Calc function in Perl This Perl Tutorial shows how to use the Date::Calc module to easily create a calendar, work out date differences, print dates, if leap year or not, if a valid time or not and much more.