Function bevy_cronjob::schedule_passed

source ·
pub fn schedule_passed(
    expression: &str,
) -> impl FnMut(Local<'_, Option<DateTime<Utc>>>) -> bool
Expand description

Creates a closure that checks if the cron expression has passed

§expression format:

Note that the year may be omitted.

secminhourday of monthmonthday of weekyear
*******
0-590-590-231-231-121-71970-2100

§example:

expressiondescription
0/5 * * * * *every 5 sec
0 * * * * *every minute
0 5,10 * * * *every hour on 5 and 10 min
0 0 1 * * *every day on 1:00:00