Newscoop\Services\SchedulerService::getNextRunDate PHP Method

getNextRunDate() public method

{@inheritDoc}
public getNextRunDate ( $schedule, $currentTime = 'now', $nth, $allowCurrentDate = false )
    public function getNextRunDate($schedule, $currentTime = 'now', $nth = 0, $allowCurrentDate = false)
    {
        $cron = CronExpression::factory($schedule);
        return $cron->getNextRunDate($currentTime, $nth, $allowCurrentDate)->format('Y-m-d H:i:s');
    }