http://www.perlmonks.org?node_id=827759


in reply to Re^2: use of date n time functions
in thread use of date n time functions

It's all in the Date::Calc help page : look at the recipes

For instance :

use Date::Calc qw( Delta_Days ); if (Delta_Days($year1,$month1,$day1, $year2,$month2,$day2) > 0)
There's also examples about : How do I compare two dates with times? , which might be just what you need.