You are here

public function JobSchedulerCronTabInterface::nextDate in Job Scheduler 8.3

Same name and namespace in other branches
  1. 8.2 src/JobSchedulerCronTabInterface.php \Drupal\job_scheduler\JobSchedulerCronTabInterface::nextDate()

Finds the next occurrence within the next year as a date array.

Parameters

array $date: Date array with: 'mday', 'mon', 'year', 'hours', 'minutes'.

int $limit: (optional) The time limit in days. Defaults to 366.

Return value

array|false A date array, or false if there was an error.

See also

getdate()

1 method overrides JobSchedulerCronTabInterface::nextDate()
JobSchedulerCronTab::nextDate in src/JobSchedulerCronTab.php
Finds the next occurrence within the next year as a date array.

File

src/JobSchedulerCronTabInterface.php, line 60

Class

JobSchedulerCronTabInterface
Provides an interface for JobSchedulerCronTab.

Namespace

Drupal\job_scheduler

Code

public function nextDate(array $date, $limit = 366);