This prints 21-60.use Set::IntSpan; use warnings; use strict; my $set_spec1 = '21-45'; my $set_spec2 = '44-60'; my $set = new Set::IntSpan $set_spec1; my $u_set = union $set $set_spec2; my $runlist = run_list $u_set ; print $runlist;
Now, computiing integer ranges from your times (60*hour+ minute), you can combine ranges as above.
-Mark
In reply to Re: Determining gaps in time ranges
by kvale
in thread Determining gaps in time ranges
by Sprenger000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |