DateTime::Cron::SimpleDateTime::Cron::Simple is a Perl module that can parse a cron entry and check against current time. | |
Download |
DateTime::Cron::Simple Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Brendan Fagan
- Publisher web site:
- http://search.cpan.org/~bits/DBIx-FetchLoop-0.6/FetchLoop.pm
DateTime::Cron::Simple Tags
DateTime::Cron::Simple Description
DateTime::Cron::Simple is a Perl module that can parse a cron entry and check against current time. DateTime::Cron::Simple is a Perl module that can parse a cron entry and check against current time.SYNOPSIS use DateTime::Cron::Simple; $c = DateTime::Cron::Simple->new($cron); $boolean = $c->validate_time; $c->new_cron($cron);This module is a quick and dirty way to determine if a cron time format is valid for the current date and time.A cron entry follows the cron format from crontab(5).The validate_time function uses the current date and time for comparison, but will also accept a valid DateTime object as a parameter.EXAMPLE use DateTime::Cron::Simple; $c = DateTime::Cron::Simple->new('0-59/2 10,12 * * 5'); if($c->validate_time) { ... } $c->new_cron('* * 1 * 0'); if($c->validate_time) { ... } Requirements: · Perl
DateTime::Cron::Simple Related Software