CronExpression::getMultipleRunDates( int $total, string|DateTime $currentTime = 'now', bool $invert = false, bool $allowCurrentDate = false )
Get multiple run dates starting at the current date or a specific date
Description Description
Parameters Parameters
- $total
-
(Required) Set the total number of dates to calculate
- $currentTime
-
(Optional) (optional) Relative calculation date
Default value: 'now'
- $invert
-
(Optional) (optional) Set to TRUE to retrieve previous dates
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
(array) Returns an array of run dates
Source Source
File: packages/action-scheduler/lib/cron-expression/CronExpression.php