Skip to main content

Crate hron

Crate hron 

Source
Expand description

hron — Human-readable cron.

Human-readable schedule expressions that are a superset of what cron can express.

§Examples

use hron::Schedule;

let schedule: Schedule = "every weekday at 09:00".parse().unwrap();
println!("{}", schedule); // "every weekday at 09:00"

Re-exports§

pub use ast::Schedule;
pub use ast::ScheduleExpr;
pub use error::ScheduleError;

Modules§

ast
error

Structs§

BoundedOccurrences
Bounded iterator for occurrences where from < occurrence <= to.
Occurrences
Lazy iterator over schedule occurrences starting after a given datetime.