DaysBetween: Cleanup as suggested by @mwmiller

master
Rob Emery 2014-08-10 22:13:53 +01:00
parent 67d698ee51
commit 9acd9819b2
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ handle remainder => sub {
my $date1 = parse_string_to_date($1);
my $date2 = parse_string_to_date($2);
return unless ($date1 && $date2);
my $difference = $date1->delta_days($date2);
my $daysBetween = abs($difference->in_units('days'));
my $inclusive = '';