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§
- Cron
Schedule - Compiled 5-field or 6-field cron expression backed by O(1) bitmasks.
- UtcDate
Time - Decomposed UTC date and time components for cron matching and iteration.
Enums§
- Cron
Error - Error returned when parsing an invalid cron expression.
Functions§
- civil_
from_ days - Converts days since
1970-01-01back 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
yearis a leap year. - weekday_
from_ days - Computes the day of week (
0 = Sunday ..= 6 = Saturday) from days since1970-01-01.