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