Skip to main content

Crate utc_cron_expr

Crate utc_cron_expr 

Source
Expand description

utc-cron-expr

Zero-dependency 5-field and 6-field cron expression parser, O(1) bitmask matcher, and fast civil-calendar next-occurrence calculator.

Structs§

CronSchedule
Compiled 5-field or 6-field cron expression backed by O(1) bitmasks.
UtcDateTime
Decomposed UTC date and time components for cron matching and iteration.

Enums§

CronError
Error returned when parsing an invalid cron expression.

Functions§

civil_from_days
Converts days since 1970-01-01 back to (year, month, day) (Howard Hinnant algorithm).
days_from_civil
Converts a proleptic Gregorian date to days since 1970-01-01 (Howard Hinnant algorithm).
days_in_month
Returns the number of days in Gregorian (year, month).
is_leap_year
Reports whether Gregorian year is a leap year.
weekday_from_days
Computes the day of week (0 = Sunday ..= 6 = Saturday) from days since 1970-01-01.