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


Top ↑

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


Top ↑

Return Return

(DateTime)


Top ↑

Source Source

File: packages/action-scheduler/lib/cron-expression/CronExpression.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.