Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    my $dur2 = $dt3->subtract_datetime($dt1);
    printf "30/03/2013 to 29/09/2013: %s months\n", $dur2->months;
    
  2. or download this
    17:44 >perl 1919_SoPW.pl
    29/03/2013 to 29/09/2013: 6 months
    30/03/2013 to 29/09/2013: 5 months
    
    17:44 >