utc-cron-expr 11.2.0

Zero-dependency 5-field and 6-field POSIX/Quartz cron expression parser, O(1) bitmask matcher, and fast civil-calendar next-occurrence calculator.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Decomposed UTC date and time components for cron matching and iteration.
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct UtcDateTime {
    /// Full Gregorian year (e.g. `2026`).
    pub(crate) year: i32,
    /// Month of year (`1..=12`).
    pub(crate) month: u8,
    /// Day of month (`1..=31`).
    pub(crate) day: u8,
    /// Day of week (`0 = Sunday ..= 6 = Saturday`).
    pub(crate) weekday: u8,
    /// Hour of day (`0..=23`).
    pub(crate) hour: u8,
    /// Minute of hour (`0..=59`).
    pub(crate) minute: u8,
    /// Second of minute (`0..=59`).
    pub(crate) second: u8,
}