Expand description

Simple cron expression parser.

Syntax

<minutes> <hours> <days of month> <months> <days of week>

  • minute is integer in range 0..=59;
  • hour is integer in range 0..=23;
  • day of month is integer in range 1..=31;
  • month is integer in range 1..=12 or textual representation like JAN or DEC;
  • day of week is integer in range 0..=6 or textual representation like SUN or SAT;

Features

  • serde - Enables serialization/deserialization.
  • time - Enables schedule calculation using time03 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.