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

NAME

ParseCron - describe a cron job in human-readable form

VERSION

Version 0.02

SYNOPSIS

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.

EXPORT

parse_cron

SUBROUTINES/METHODS

new()

Create a new ParseCron object.

parse_cron()

This is the workhorse. All translation work gets done here. This is the only exported sub.

bits_to_english()

conj_and()

conj_or()

esc()

expand_time_bits()

freq()

ordinate()

ordinate_soft()

ordsuf()

percent_proc()

process_command()

AUTHOR

sean m burke, <sburke@cpan.org> bradley andersen, <bradley at pvnp.us>

BUGS

SUPPORT

You can find documentation for this module with the perldoc command.

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

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.

PRIOR ART

TODO

  • fix this documentation!