Expand description
Simple cron expression parser.
§Syntax
<minutes> <hours> <days of month> <months> <days of week>
minuteis integer in range0..=59;houris integer in range0..=23;day of monthis integer in range1..=31;monthis integer in range1..=12or textual representation likeJANorDEC;day of weekis integer in range0..=6or textual representation likeSUNorSAT;
§Features
std- Enables use ofstdlibrary types and traits.serde- Enables serialization/deserialization.time- Enables schedule calculation usingtime03crate.
Re-exports§
pub extern crate time;
Structs§
- Cron
Schedule - Cron schedule.
- DayOf
Month - Second of the minute.
- Hour
- Hour of the day.
- Minute
- Minute of the hour.
Enums§
- Day
- Day of the week.
- Invalid
Expr - Describes potential error within expression
- Month
- Month of the year.
- Parse
Error - Cron expression parser error
Constants§
- DAILY
- Cron expression to run once a day at midnight.
- HOURLY
- Cron expression to run once a hour.
- MONTHLY
- Cron expression to run once a month at midnight of first day.
- WEEKLY
- Cron expression to run once a week at midnight of the Sunday.
- YEARLY
- Cron expression to run once a year at midnight of January 1st.
Functions§
- parse_
cron_ from_ time - Gets schedule after
time. - parse_
cron_ from_ time_ now - Gets schedule after current time in UTC.