CronExpression::getPreviousRunDate( string|DateTime $currentTime = 'now', int $nth, bool $allowCurrentDate = false )
Get a previous run date relative to the current date or a specific date
Description Description
See also See also
Parameters Parameters
- $currentTime
-
(Optional) (optional) Relative calculation date
Default value: 'now'
- $nth
-
(Required) (optional) Number of matches to skip before returning
- $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