Files
Notes/notes-service/vendor/english-to-cron/examples/run.rs
T
2026-08-01 16:11:49 +03:00

16 lines
367 B
Rust

fn main() {
let texts = vec![
"every 15 seconds",
"every minute",
"every day at 4:00 pm",
"at 10:00 am",
"Run at midnight on the 1st and 15th of the month",
"on Sunday at 12:00",
];
for text in texts {
let res = english_to_cron::str_cron_syntax(text);
println!("{text}: {res:#?}");
}
}