cron2eng: Generate English Interpretation of Valid Cron Strings

Description Usage Arguments Details Value Examples

View source: R/cron.R

Description

Demystify the meaning of a valid cron string by converting it to an equivalent sentence in English. Can take the output from r2cron for example. (Under development.)

Usage

1
cron2eng(cron = "* * * * *")

Arguments

cron

Character. A valid cron expression, i.e. a string with five time period 'slots' (minutes, hours, days of the month, months, days of the week), separated by spaces. See details for more information.

Details

The cron string slots and their valid ranges are:

In addition, the following input formats are acceptable to all the time slots:

Value

Result printed to console. An English sentence interpretation of the cron string that was the input.

Examples

1
2
3
## Not run: 
cron2eng("1,2,5 2-3 * 1/3 5")
## End(Not run)

matt-dray/dialga documentation built on Dec. 21, 2021, 2:54 p.m.