Magick Scripts

Tags

Links

Menu

DateTime::Event::MultiCron

2007-07-26 21:14:40 by themage

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.



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.

Posted in | ='Digg Add to del.icio.us! Furl this! Adicionar ao Do Melhor! Adicionar ao Tags Sapo! Adicionar ao Talking Web! Adicionar ao Sites Favoritos

Post a Comment

Post Comment
Name
Email
Homepage
Title
Comment
''bold'' => bold
__italic__ => italic
[[text|http://magick-source.net/]] => text