cron-rs

Cron library is written in rust.

USAGE

Cron Time Format

[SECOND] MINUTE HOUR DAY MONTH WEEKDAY

Good Examples

*/2 1-8,11 * * *

00 */2 1-8,11 * * *

Make A Scheduler

Scheduler is a cron time shceduler.

let sch = Scheduler::new("*/2 1-8,11 * * *").unwrap();

Verify Time

let tm = time::now(); assert!(sch.isTimeUP(&tm));

DEPENDENICIES

FAQ