cron-tools 0.1.0
Parse 5-field cron expressions and find the next or previous run
Install
cargo add cron-tools --registry rupm
In Ruststudio: Packages, search for cron-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# cron-tools
Parse 5-field cron expressions and find the next or previous run
Add it with `rupm add cron-tools` (or `cargo add cron-tools --registry rupm`).
```rust
let c = cron_tools::Cron::parse("*/15 9-17 * * 1-5")?;
let next = c.next_after(1_700_000_000); // unix seconds, UTC
assert!(c.matches(next.unwrap()));
```