Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

255 B
Raw Blame
use cron::Schedule;
use std::str::FromStr;

fn main() {
    let schedule = "* * * * * * *";
    match Schedule::from_str(schedule) {
        Ok(_) => println!("Valid cron expression"),
        Err(e) => println!("Invalid cron expression: {}", e),
    }
}