CronExpression::getRunDate( string|DateTime $currentTime = null, int $nth, bool $invert = false, bool $allowCurrentDate = false )
Get the next or previous run date of the expression relative to a date
Description Description
Parameters Parameters
- $currentTime
-
(Optional) (optional) Relative calculation date
Default value: null
- $nth
-
(Required) (optional) Number of matches to skip before returning
- $invert
-
(Optional) (optional) Set to TRUE to go backwards in time
Default value: false
- $allowCurrentDate
-
(Optional) (optional) Set to TRUE to return the current date if it matches the cron expression
Default value: false
Return Return
(DateTime)
Source Source
File: packages/action-scheduler/lib/cron-expression/CronExpression.php