public function getLastExecutionTime($jobCode)
    {
        if ($this->isDisabled($jobCode)) {
            return false;
        }
        $schedules = Mage::getModel('cron/schedule')->getCollection(); /* @var $schedules Mage_Cron_Model_Mysql4_Schedule_Collection */
        $schedules->getSelect()->limit(1)->order('executed_at DESC');
        $schedules->addFieldToFilter(
            array('status'),
            array(
                array('eq' => Aoe_Scheduler_Model_Schedule::STATUS_SUCCESS),
                array('eq' => Aoe_Scheduler_Model_Schedule::STATUS_REPEAT)
            )
        );

        $schedules->addFieldToFilter('job_code', $jobCode);
        $schedules->load();
        if (count($schedules) == 0) {
            return false;
        }
        $executedAt = $schedules->getFirstItem()->getExecutedAt();
        $value = Mage::getModel('core/date')->date(null, $executedAt);
        return $value;
    }
public function getLastExecutionTime($jobCode)
    {
        if ($this->isDisabled($jobCode)) {
            return false;
        }
        $schedules = Mage::getModel('cron/schedule')->getCollection(); /* @var $schedules Mage_Cron_Model_Mysql4_Schedule_Collection */
        $schedules->getSelect()->limit(1)->order('executed_at DESC');
        $schedules->addFieldToFilter(
            array('status'),
            array(
                array('eq' => Aoe_Scheduler_Model_Schedule::STATUS_SUCCESS),
                array('eq' => Aoe_Scheduler_Model_Schedule::STATUS_REPEAT)
            )
        );

        $schedules->addFieldToFilter('job_code', $jobCode);
        $schedules->load();
        if (count($schedules) == 0) {
            return false;
        }
        $executedAt = $schedules->getFirstItem()->getExecutedAt();
        $value = Mage::getModel('core/date')->date(null, $executedAt);
        return $value;
    }
public function getLastExecutionTime ( $ jobCode ) { if ( $ this -> isDisabled ( $ jobCode ) ) { return false ; } $ schedules = Mage :: getModel ( 'cron/schedule' ) -> getCollection ( ) ; /* @var $schedules Mage_Cron_Model_Mysql4_Schedule_Collection */ $ schedules -> getSelect ( ) -> limit ( 1 ) -> order ( 'executed_at DESC' ) ; $ schedules -> addFieldToFilter ( array ( 'status' ) , array ( array ( 'eq' => Aoe_Scheduler_Model_Schedule :: STATUS_SUCCESS ) , array ( 'eq' => Aoe_Scheduler_Model_Schedule :: STATUS_REPEAT ) ) ) ; $ schedules -> addFieldToFilter ( 'job_code' , $ jobCode ) ; $ schedules -> load ( ) ; if ( count ( $ schedules ) == 0 ) { return false ; } $ executedAt = $ schedules -> getFirstItem ( ) -> getExecutedAt ( ) ; $ value = Mage :: getModel ( 'core/date' ) -> date ( null , $ executedAt ) ; return $ value ; }
Get last execution time

@param $jobCode
@return bool
Get last execution time