ParseCron - describe a cron job in human-readable form
Version 0.02
describe a cron job in human-readable form. adapted from http://interglacial.com/~sburke/pub/crontab2english.html for use in DDG Goodies.
use ParseCron qw/parse_cron/;
...
my $english = parse_cron('42 12 3 Feb Sat');
will produce '(42 12 3 Feb Sat) means this cron job will run: 12:42pm on the third of -- or every Saturday in -- February'.
See ParseCron.t for more example uses.
parse_cron
Create a new ParseCron object.
This is the workhorse. All translation work gets done here. This is the only exported sub.
sean m burke, <sburke@cpan.org> bradley andersen, <bradley at pvnp.us>
<sburke@cpan.org>
<bradley at pvnp.us>
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=ParseCron
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/ParseCron
CPAN Ratings
http://cpanratings.perl.org/d/ParseCron
Search CPAN
http://search.cpan.org/dist/ParseCron/
Copyright (c) 2014 Bradley Andersen. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
fix this documentation!
To install ParseCron, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ParseCron
CPAN shell
perl -MCPAN -e shell install ParseCron
For more information on module installation, please visit the detailed CPAN module installation guide.