Marco Neves > DateTime-Event-MultiCron-0.01.1 > DateTime::Event::MultiCron

Download:
DateTime-Event-MultiCron-0.01.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01.1   Source  

NAME ^

DateTime::Event::MultiCron - Extension for DateTime::Event::Cron that allows multiple cron schedules for the same event.

SYNOPSIS ^

  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";
        }

DESCRIPTION ^

This module is an extension to DateTime::Event::Cron. It only adds the method from_multicron.

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.

SEE ALSO ^

  L<DateTime::Event::Cron>

AUTHOR ^

  Marco Neves, E<lt>neves@cpan.orgE<gt>
  http://www.magick-source.net/

COPYRIGHT AND LICENSE ^

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.