Erm, given start and end as time_t values (use Date::Parse or whatever to get them there) just convert your interval into seconds and add.
sub intervals { my( $start, $end, $interval ) = @_; my @ret; my $cur = $start; while( $cur <= $end ) { push @ret, $cur; $cur += $interval; } return @ret }
In reply to Re: Calculating clock time within a period.
by Fletch
in thread Calculating clock time within a period.
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |