The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Parse::Crontab::Schedule - Perl extension to parse Vixie crontab schedule

SYNOPSIS

    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) ) {
        ...
    }

DESCRIPTION

This software is for parsing and validating Vixie crontab files.

INTERFACE

Constructor

$schedule = Parse::Crontab::Schedule->parse($str)

$str is crontab schedule string like '*/1 12 10 10 *.

Functions

$bool = $schedule->match(%opt)

The schedule matches or not. Keys of %opt are minute, hour, day, month, year.

DEPENDENCIES

Perl 5.8.1 or later.

BUGS

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.

AUTHOR

Masayuki Matsuki <y.songmu@gmail.com>

LICENSE AND COPYRIGHT

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.