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


Top ↑

Return Return

(array) Returns an array of run dates


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.