DateTime::Event::MultiCron - Extension for DateTime::Event::Cron that allows multiple cron schedules for the same event.
use DateTime::Event::MultiCron; my $dts=DateTime::Event::MultiCron->from_multicron('*/5 * * * *','*/2 * * * 6'); my $iter=$dts->iterator(after=>DateTime->now()); while (1) { my $next = $iter->next; print $next->datetime,"\n"; }
This module is an extension to DateTime::Event::Cron. It only adds the method from_multicron.
From multicron gets several schedule definition on the cron format, and returns a DateTime::Set for all that schedules. See example in the SYNOPSIS.
L<DateTime::Event::Cron>
Marco Neves, E<lt>neves@cpan.orgE<gt> http://www.magick-source.net/
Copyright (C) 2007 by Marco Neves
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install DateTime::Event::MultiCron, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Event::MultiCron
CPAN shell
perl -MCPAN -e shell install DateTime::Event::MultiCron
For more information on module installation, please visit the detailed CPAN module installation guide.