Determine when the next check of the scheduler is due.

@param  string  $schedule
@param  string  $timezone
@param  int  $extra_seconds
@return  \Carbon\Carbon
320583
public function getNextCheckDue($schedule, $timezone, $extra_seconds = 0)
    {
        return $this->getNextRunDue($schedule, $timezone)->addMinutes(5)->addSeconds($extra_seconds);
    }
1295015
public function deleteScheduleAction(Schedule $schedule)
    {
        execute(new DeleteScheduleCommand($schedule));

        return cachet_redirect('dashboard.schedule')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.schedule.delete.success')));
    }
671054
public function enqueueIn(int $seconds, Job $job)
    {
        $at = time() + $seconds;

        $this->enqueueAt($at, $job);
    }
192881
function(cronspec, sixth) {
    var schedule = later.parse.cron(cronspec, sixth);
    return scheduleToSentence(schedule['schedules'][0], sixth);
  }
98797
public function isCreatedInLast(int $seconds = 86400, string $timezone = null): bool
    {
        if (!$this->hasCreatedAt()) {
            return false;
        }

        if ($timezone === null) {
            $timezone = 'UTC';
        }

        $date = $this->getCreatedAtDatetime($timezone);
        $now = new DateTime('now', new DateTimeZone($timezone));
        $now->modify("-{$seconds} seconds");

        return $date->getTimestamp() >= $now->getTimestamp();
    }
228766
public function setTimezone(DateTimeZone $timezone)
    {
        if($this->_date->setTimezone($timezone) === false) {
            return false;
        }

        return $this;
    }
67651
public function date($timezone = null): Carbon
    {
        $carbon = Carbon::instance($this->transaction->createdAt);

        return $timezone ? $carbon->setTimezone($timezone) : $carbon;
    }
864190
public static function makeFromTime($hour = null, $minute = null, $second = null, $timezone = null)
	{
		return static::makeFromDateTime(null, null, null, $hour, $minute, $second, $timezone);
	}
257342
protected function schedule(Schedule $schedule)
    {
        $schedules = $this->app['config']->get('mount.schedules', []);
        foreach ($schedules as $scheduleCommand) {
            (new $scheduleCommand())->handle($schedule);
        }
    }
49837
public function setTimeZone($timezone)
	{
		$this->timezone = ($timezone instanceof \DateTimeZone)
			? $timezone
			: new \DateTimeZone($timezone);

		return $this;
	}
423265
public function plusSeconds(int $seconds) : ZonedDateTime
    {
        return ZonedDateTime::of($this->localDateTime->plusSeconds($seconds), $this->timeZone);
    }
1129589
public function perMinutes(int $minutes, $task): ScheduleEvent
    {
        return $this->cron(sprintf('*/%d * * * *', $minutes), $task);
    }
1168673
public static function createTime($hour = null, $minute = null, $second = null, $timezone = null)
    {
        return static::create(null, null, null, $hour, $minute, $second, $timezone);
    }
569317
public function withTimeZone(\DateTimeZone $timezone)
    {
        date_default_timezone_set($timezone->getName());

        return new self(
            new Hour((string)$this->getHour()),
            new Minute((string)$this->getMinutes()),
            new Second((string)$this->getSeconds())
        );
    }
243946
public function isFuture(TimeZone $timeZone, Clock $clock = null) : bool
    {
        return $this->isAfter(LocalDateTime::now($timeZone, $clock));
    }
1146736
protected function onTimeZone(?string $timeZoneCode)
    {
        if (\is_null($timeZoneCode)) {
            $this->timezone = null;
        } elseif (\in_array($timeZoneCode, \timezone_identifiers_list())) {
            $this->timezone = $timeZoneCode;
        }

        return $this;
    }
1109664
def cron(schedule, timezone: nil)
            ms = Scheduler.parse_cron(schedule, timezone: timezone)
            event = Repeat.new(self, ms)
            event.progress &Proc.new if block_given?
            schedule(event)
            event
        end