刘刊 > pantheon > Cronos::Period

Download:
pantheon-0.58.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

SYNOPSIS ^

 use Cronos::Period;
 
 my $period = Cronos::Period->new( '07:13 ~ 13:20, 23:00 ~ 02:23' );
 my ( $range, $event ) = $period->dump( $dt1, $dt2, period => 7 );

METHODS ^

dump( $begin, $end, %param )

Returns a range of durations and a list of events indicated by seconds since epoch.

 period: interation
 day: days to select by
syntax highlighting: