use MYDan::Oncall::Period; my $period = MYDan::Oncall::Period->new( '07:13 ~ 13:20, 23:00 ~ 02:23' ); my ( $range, $event ) = $period->dump( $dt1, $dt2, period => 7 );
Returns a range of durations and a list of events indicated by seconds since epoch.
period: interation day: days to select by
To install MYDan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MYDan
CPAN shell
perl -MCPAN -e shell install MYDan
For more information on module installation, please visit the detailed CPAN module installation guide.