CronExpression::isDue( string|DateTime $currentTime = 'now' )

Determine if the cron is due to run based on the current date or a specific date. This method assumes that the current number of seconds are irrelevant, and should be called once per minute.


Description Description


Parameters Parameters

$currentTime

(Optional) (optional) Relative calculation date

Default value: 'now'


Top ↑

Return Return

(bool) Returns TRUE if the cron is due to run or FALSE if not


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.