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


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.