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.
sec | min | hour | day of month | month | day of week | year |
---|---|---|---|---|---|---|
* | * | * | * | * | * | * |
0-59 | 0-59 | 0-23 | 1-23 | 1-12 | 1-7 | 1970-2100 |
§example:
expression | description |
---|---|
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 |