CronExpr
struct CronExprA parsed cron expression.
Implements Copyable, Movable, Writable
- Fields
text: Stringminutes: UInt64hours: UInt64days: UInt64months: UInt64weekdays: UInt64any_day: Bool: The day-of-month field starts with*.any_weekday: Bool: The day-of-week field starts with*.
__init__
def __init__(out self, text: String) parse
def parse(text: StringSpan) -> Self matches_day
def matches_day(self, c: Civil) -> Bool next_fire
def next_fire(self, after: Int64, zone: Zone) -> Int64 The first time after after (seconds since the epoch) that the expression fires on zone's wall clock.
write_to
def write_to(self, mut writer: T)