- or download this
#!/usr/bin/perl
use strict;
...
print "$start\n" if $start->hour > 6 and $start->hour < 23;
$start->add( hours => 1 );
}
- or download this
$set = DateTime::Set->from_recurrence(
after => $start,
...
{
print $dt->ymd;
};
- or download this
my $set2 = $set->grep(
sub {
...
{
print $dt->ymd;
};