public function schedule($time = null)
    {
        if (is_null($time)) {
            $time = time();
        }
        $this->setStatus(Aoe_Scheduler_Model_Schedule::STATUS_PENDING)
            ->setCreatedAt(strftime('%Y-%m-%d %H:%M:%S', time()))
            ->setScheduledAt(strftime('%Y-%m-%d %H:%M:00', $time))
            ->save();
        return $this;
    }
public function schedule($time = null)
    {
        if (is_null($time)) {
            $time = time();
        }
        $this->setStatus(Aoe_Scheduler_Model_Schedule::STATUS_PENDING)
            ->setCreatedAt(strftime('%Y-%m-%d %H:%M:%S', time()))
            ->setScheduledAt(strftime('%Y-%m-%d %H:%M:00', $time))
            ->save();
        return $this;
    }
public function schedule ( $ time = null ) { if ( is_null ( $ time ) ) { $ time = time ( ) ; } $ this -> setStatus ( Aoe_Scheduler_Model_Schedule :: STATUS_PENDING ) -> setCreatedAt ( strftime ( '%Y-%m-%d %H:%M:%S' , time ( ) ) ) -> setScheduledAt ( strftime ( '%Y-%m-%d %H:%M:00' , $ time ) ) -> save ( ) ; return $ this ; }
Schedule this task to be executed at a given time

@param int $time
@return Aoe_Scheduler_Model_Schedule
Schedule this task to be executed at a given time