Cron class abstract
Parses cron expressions into an iterator of matching dates.
Used by CronScheduledTriggerExecutor.getSchedule to compute when a
CronScheduledTrigger fires. Supports the standard 5 fields (minute, hour,
day of month, month, day of week) with *, lists, ranges and */n steps.
Adapted from code by rbubke; see the license in this file.
Constructors
- Cron()
-
Creates a cron parser and initializes the time zone database.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String cronString, String locationName, [TZDateTime? startTime]) → CronIterator< TZDateTime> -
Returns a CronIterator over the times matching
cronString. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited