crontime 0.4.0

cron expression -> time iterator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod expr;
mod iter;

pub struct Crontime {
    o: time::OffsetDateTime,
    e: expr::Expr,
}

pub fn build(o: time::OffsetDateTime, s: &str) -> Result<Crontime, nom::Err<()>> {
    s.parse().map(|e| Crontime {
        o: iter::init(o, e),
        e,
    })
}