cron-descriptor

Crates.iocron-descriptor
lib.rscron-descriptor
version0.1.1
sourcesrc
created_at2023-03-10 19:47:24.200611
updated_at2023-03-11 18:32:05.426211
descriptionProvides human-readable desriptions of cron expressions
homepagehttps://github.com/cflockhart/cron-descriptor-rust
repositoryhttps://github.com/cflockhart/cron-descriptor-rust
max_upload_size
id806680
size80,583
Craig Flockhart (cflockhart)

documentation

README

cron-descriptor-rust

A Rust library that converts cron expressions into human-readable strings. Translated from the Java version at https://github.com/grahamar/cron-parser Original Project in C#, on which the Java version is based: https://github.com/bradymholt/cron-expression-descriptor

i18n

Only English and Spanish are available right now, but translating from the Java properties files to YAML in locales is straightforward.

Usage

See tests/tests_*.rs. E.g.

use cron_descriptor::cronparser::cron_expression_descriptor;
assert_eq!("Every 45 seconds", cron_expression_descriptor::get_description_cron("*/45 * * * * *"));
Commit count: 29

cargo fmt