WordPress at Your Fingertips
function is not described

CronExpression::getPreviousRunDate() public WC 1.0

Get a previous run date relative to the current date or a specific date

{} It's a method of the class: CronExpression{}

No Hooks.




$CronExpression = new CronExpression();
$CronExpression->getPreviousRunDate( $currentTime, $nth, $allowCurrentDate );
(optional) Relative calculation date
Default: 'now'
(optional) Number of matches to skip before returning
(optional) Set to TRUE to return the
php current date if it matches the cron expression
Default: false


Code of CronExpression::getPreviousRunDate() WC 6.1.1

public function getPreviousRunDate($currentTime = 'now', $nth = 0, $allowCurrentDate = false)
    return $this->getRunDate($currentTime, $nth, true, $allowCurrentDate);