DateTime::Event::MultiCron
DateTime::Event::MultiCron is a perl module based on DateTime::Event::Cron, that allow to define a event with several cron schedules.
It was created because I have events that have diferent schedules definitions. It can be used, for example, to find the date/times for events that have diferent schedulings depending on the week day.
You can download it from CPAN or from here.
It was created because I have events that have diferent schedules definitions. It can be used, for example, to find the date/times for events that have diferent schedulings depending on the week day.
use DateTime::Event::MultiCron;
my $dts=DateTime::Event::MultiCron->from_multicron(
'30 21 * * 2-5',
#happens at 9h30pm from tuesday to friday
'30 16,21 * * 6',
#happens at 4h30pm and 9h30pm at satarday
'30 15 * * 0'
#happens at 3h30pm at sunday.
);
You can download it from CPAN or from here.


Post a Comment