The DayOfWeek implementation expects 1-7 to represent Sun-Sat:
|
/// A day of the week, 1-7 (Sun-Sat) |
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)] |
|
pub struct DayOfWeek(chrono::Weekday); |
|
impl Sealed for DayOfWeek {} |
|
impl ExprValue for DayOfWeek { |
|
const MAX: u8 = 7; |
|
const MIN: u8 = 1; |
|
|
|
fn max() -> Self { |
|
Self(chrono::Weekday::Sat) |
|
} |
|
fn min() -> Self { |
|
Self(chrono::Weekday::Sun) |
|
} |
|
} |
But many Cron sources (e.g.,
this one) say that 1-7 should represent Mon-Sun, and that 0 should be an additional representation for Sunday.
The
DayOfWeekimplementation expects 1-7 to represent Sun-Sat:saffron/saffron/src/parse.rs
Lines 338 to 352 in bb34024
But many Cron sources (e.g., this one) say that 1-7 should represent Mon-Sun, and that 0 should be an additional representation for Sunday.