aazev / cron-descriptor-rust

Cron descriptor in Rust, translated from Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 * * * * *"));

About

Cron descriptor in Rust, translated from Java


Languages

Language:Rust 100.0%