| Crates.io | cron-descriptor |
| lib.rs | cron-descriptor |
| version | 0.1.1 |
| created_at | 2023-03-10 19:47:24.200611+00 |
| updated_at | 2023-03-11 18:32:05.426211+00 |
| description | Provides human-readable desriptions of cron expressions |
| homepage | https://github.com/cflockhart/cron-descriptor-rust |
| repository | https://github.com/cflockhart/cron-descriptor-rust |
| max_upload_size | |
| id | 806680 |
| size | 80,583 |
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
Only English and Spanish are available right now, but translating from the Java properties files to YAML in locales is straightforward.
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 * * * * *"));