Help for this page

Select Code to Download


  1. or download this
    use DateTime qw( );
    
    ...
    
       print format_duration($dt - $now), "\n";
    }
    
  2. or download this
    use DateTime::Duration qw( );
    
    ...
    
       print format_duration($dur), "\n";
    }
    
  3. or download this
    sub human_list {
       my $last = pop;
    ...
    
       return @parts ? 'in ' . human_list(@parts) : 'now';
    }