Parse::Crontab::Schedule - Perl extension to parse Vixie crontab schedule
use Parse::Crontab::Schedule; my $schedule = Parse::Crontab::Schedule->parse('*/1 12 10 10 *'); if ($schedule->match(year => 2013, month => 10, day => 10, hour => 12, minute => 5) ) { ... }
This software is for parsing and validating Vixie crontab files.
$schedule = Parse::Crontab::Schedule->parse($str)
$str is crontab schedule string like '*/1 12 10 10 *.
$str
'*/1 12 10 10 *
$bool = $schedule->match(%opt)
The schedule matches or not. Keys of %opt are minute, hour, day, month, year.
%opt
minute
hour
day
month
year
Perl 5.8.1 or later.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
Masayuki Matsuki <y.songmu@gmail.com>
Copyright (c) 2013, Masayuki Matsuki. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Parse::Crontab, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::Crontab
CPAN shell
perl -MCPAN -e shell install Parse::Crontab
For more information on module installation, please visit the detailed CPAN module installation guide.