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