![]() |
![]()
| ![]() |
![]()
NAMETime::Crontab - parser for crontab date and time field SYNOPSISuse Time::Crontab; my $time_cron = Time::Crontab->new('0 0 1 * *'); if ( $time_cron->match(time()) ) { do_cron_job(); } DESCRIPTIONTime::Crontab is a parser for crontab date and time field. And it provides simple matcher. METHOD
SUPPORTED SPECSField name Allowed values Allowed special characters Minutes 0-59 * / , - Hours 0-23 * / , - Day of month 1-31 * / , - Month 1-12 or JAN-DEC * / , - Day of week 0-6 or SUN-SAT * / , - Predefined scheduling definitions are not supported. In month and day_of_week fields, Able to use the first three letters of day or month. But does not support range or list of the names. RELATED MODULES
LICENSECopyright (C) Masahiro Nagano. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHORMasahiro Nagano <kazeburo@gmail.com>
|