src/php/Arbit/Periodic/Executor.php
protected function getJobsSince( $time )
    {
        $now  = time();
        $jobs = array();

        // Find rescheduled tasks
        foreach ( $this->rescheduled as $scheduled => $cronjob )
        {
            if ( $scheduled <= $now )
            {
                $jobs[$scheduled][] = $cronjob;
                unset( $this->rescheduled[$scheduled] );
            }
        }

        // Find new jobs defined by their crontable entries
        foreach ( $this->crontab as $cronjob )
        {
            $cronjob->iterator->startTime = $time;

            if ( ( $scheduled = $cronjob->iterator->current() ) < $now )
            {
                $jobs[$scheduled][] = $cronjob;
            }
        }

        ksort( $jobs );
        return $jobs;
    }
protected function getJobsSince( $time )
    {
        $now  = time();
        $jobs = array();

        // Find rescheduled tasks
        foreach ( $this->rescheduled as $scheduled => $cronjob )
        {
            if ( $scheduled <= $now )
            {
                $jobs[$scheduled][] = $cronjob;
                unset( $this->rescheduled[$scheduled] );
            }
        }

        // Find new jobs defined by their crontable entries
        foreach ( $this->crontab as $cronjob )
        {
            $cronjob->iterator->startTime = $time;

            if ( ( $scheduled = $cronjob->iterator->current() ) < $now )
            {
                $jobs[$scheduled][] = $cronjob;
            }
        }

        ksort( $jobs );
        return $jobs;
    }
Get jobs since date

Return an array with jobs which have been scheduled between the given
date and the current time.

Each job is only returned once, even it occured multiple times in the
given timeframe. The jobs are returned in order of their first
scheduled execution.

@param int $time
@return array