Expand description
Simple cron expression parser.
Syntax
<minutes> <hours> <days of month> <months> <days of week>
minute
is integer in range0..=59
;hour
is integer in range0..=23
;day of month
is integer in range1..=31
;month
is integer in range1..=12
or textual representation likeJAN
orDEC
;day of week
is integer in range0..=6
or textual representation likeSUN
orSAT
;
Features
std
- Enables use ofstd
library types and traits.serde
- Enables serialization/deserialization.time
- Enables schedule calculation usingtime03
crate.
Re-exports
pub extern crate time;
Structs
- Cron schedule.
- Second of the minute.
- Hour of the day.
- Minute of the hour.
Enums
- Day of the week.
- Describes potential error within expression
- Month of the year.
- Cron expression parser error
Constants
- Cron expression to run once a day at midnight.
- Cron expression to run once a hour.
- Cron expression to run once a month at midnight of first day.
- Cron expression to run once a week at midnight of the Sunday.
- Cron expression to run once a year at midnight of January 1st.
Functions
- Gets schedule after
time
. - Gets schedule after current time in UTC.