5 stable releases
2.0.1 | Jun 13, 2022 |
---|---|
2.0.0 | Jun 11, 2022 |
1.0.2 | Jul 7, 2021 |
1.0.1 | Jul 6, 2021 |
#451 in Parser implementations
616 downloads per month
35KB
725 lines
cronchik
Cron expression parser.
Syntax
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
Features
serde
- Enables serialization/deserialization.time
- Enables schedule calculation usingtime
crate.
lib.rs
:
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
serde
- Enables serialization/deserialization.time
- Enables schedule calculation usingtime03
crate.
Dependencies
~215KB