class Poodle\Crontab\Cron\ExpressionImplements: Stringable
CRON expression parser that can determine whether or not a CRON expression is
due to run, the next run date and previous run date of a CRON expression.
The determinations made by this class are accurate if checked run once per
minute (seconds are dropped from date time comparisons).
Schedule parts must map to:
minute [0-59], hour [0-23], day of month, month [1-12|JAN-DEC], day of week
[1-7|MON-SUN], and an optional year.
Constants integer DAY integer HOUR integer MINUTE integer MONTH integer WEEKDAY integer YEAR
Methods public static factory ( $expression ) public __construct ( $expression ) __toString ( ) getExpression ( $part = NULL ) getMultipleRunDates ( $total, $currentTime = 'now', $invert = false, $allowCurrentDate = false ) getNextRunDate ( $currentTime = 'now', $nth = 0, $allowCurrentDate = false ) getPreviousRunDate ( $currentTime = 'now', $nth = 0, $allowCurrentDate = false ) isDue ( $currentTime = NULL ) setExpression ( $value ) setPart ( $position, $value )
|