Skip to main content

to_crate_expr

Function to_crate_expr 

Source
pub fn to_crate_expr(five_field: &str) -> Result<String, String>
Expand description

five_field, a standard 5-field cron expression, as the cron crate’s expression: a 0 seconds field first, and a numeric day-of-week field in the crate’s numbering. Names (MON-FRI, SUN), * and ? are kept as they are. Ranges may wrap (5-1 is Friday to Monday).