/** * Get the feed last run date time in a properly format string. * @return string */ protected function _getFormatLastRunDatetime() { return Mage::getModel('core/date')->gmtDate(static::LAST_RUN_DATE_TIME_FORMAT, $this->_config->getFeedLastRunDatetime()); }
/** * Calculating the time it took in minutes to successfully run the product feed by using the * the last run date time from configuration and the current time now. * @return float */ protected function _calculateDuration() { $interval = $this->_helper->getDateInterval($this->_config->getFeedLastRunDatetime(), $this->_date->date(static::TIME_FORMAT)); return $this->_helper->calculateTimeElapseInMinutes($interval); }