NAME

AnyEvent::Cron - Crontab in AnyEvent! provide an interface to register event on specified time.

SYNOPSIS

my $cron = AnyEvent::Cron->new( 
        verbose => 1,
        debug => 1,
        ignore_floating => 1
);

            # 00:00 (hour:minute)
$cron->add("00:00" => sub { warn "zero"; })
    ->add( '* * * * *' => sub {  } )
    ->add( '1 seconds' => sub {  } )
    ->add( '3 days' => sub {  } )
    ->run();

my $cv = AnyEvent->condvar;
$cv->recv;

METHODS

add( "12:36" => sub { } )

add( DateTime->now => sub { } )

AUTHOR

Cornelius, <cornelius.howl_at_gmail.com>

BUGS

Please report any bugs or feature requests to bug-anyevent-cron at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=AnyEvent-Cron. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc AnyEvent::Cron

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2010 Cornelius.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.