cron-descriptor 0.1.1

Provides human-readable desriptions of cron expressions
Documentation
1
2
3
4
5
6
7
8
9
10
11

use cron_descriptor::cronparser::cron_expression_descriptor;
use cron_descriptor::cronparser::Options;

pub fn unwrapped_description(cron_expr: &str) -> String {
    cron_expression_descriptor::get_description_cron(cron_expr).unwrap()
}

pub fn unwrapped_description_options(cron_expr: &str, opts: &Options) -> String {
    cron_expression_descriptor::get_description_cron_options(cron_expr, opts).unwrap()
}