Returns the timestamp of the last update.

@return int timestamp
@throws DataBackendException
353554
public function getLastUpdate()
    {
        try {
            $stmt = $this->statementContainer->prepare(
                "SELECT value FROM {$this->prefix}meta
                    WHERE name = :name"
            );
            $stmt->execute(array(
                ":name" => MetaData::LASTMODIFIED,
            ));
            $result = $stmt->fetch();
            if ($result === false) {
                throw new DataBackendException();

            }
            $stmt->closeCursor();
            return $result["value"];

        } catch (\PDOException $e) {
            $stmt->closeCursor();
            throw new DataBackendIOException($e->getMessage(), $e->getCode(), $e);

        }
    }
391384
public function nextUpdate()
    {
        if ($this->rawStatusCode === 503 &&
            strpos($this->base, 'http') === 0
        ) {
            return $this->time + min(self::CACHE_TIME, $this->headerParser->getRetryAfter($this->time));
        }
        return $this->time + self::CACHE_TIME;
    }
241026
public function getLastRefreshTimestamp()
    {
        $unixTime = Cache::get($this->cacheTimestampKey);
        
        $dateTime = new DateTime;
        $dateTime->setTimestamp($unixTime);
        
        return $dateTime;
    }
1304237
public function getTimeStamp()
    {
        if ($this->exists && !isset($this->timestamp)) {
            $this->timestamp = @filemtime($this->filepath);
        }
        return $this->timestamp;
    }
1308123
private function getActualLastModifiedTime()
    {
        if (empty($this->objectList)) return;

        foreach ($this->objectList as $object) {
            $modifiedTime = $object->getLastModifiedTimestamp();

            if (!empty($modifiedTime) && $modifiedTime > $this->lastModifiedTime) {
                $this->lastModifiedTime = $modifiedTime;
            }
        }
    }
363127
public function getData()
    {
        $data = $this->getBaseData();

        if ($this->getStartTimestamp()) {
            $data->firstSettlementDate = date(
                static::DATE_TIME_FORMAT,
                $this->getStartTimestamp()
            );
            $data->lastSettlementDate = date(static::DATE_TIME_FORMAT);
        }

        if ($this->getEndTimestamp()) {
            $data->lastSettlementDate = date(
                static::DATE_TIME_FORMAT,
                $this->getEndTimestamp()
            );
        }

        return $data;
    }
650576
public function last()
    {
        $this->executeBeforeCallback();

        return count($this->items) > 0 ? end($this->items) : null;
    }
139075
protected function createOnUpdateCurrentTimestampDDL()
    {
        $onUpdateDDL = null;

        $dataType = $this->getDataType();

        if ($this->isOnUpdateCurrentTimestamp()) {
            $precision = null;

            if ($dataType instanceof TimeTypeInterface && $dataType->hasPrecision()) {
                $precision = '(' . $dataType->getPrecision() . ')';
            }

            $onUpdateDDL = 'ON UPDATE CURRENT_TIMESTAMP' . $precision;
        }

        return $onUpdateDDL;
    }
101314
public function getDeletedAt()
    {
        if (!$this->deletedAt) {
            return null;
        } else {
            return $this->deletedAt
                ->setTimezone(new DateTimeZone(app('config')->timezone));
        }
    }
14901
function lastVisit()
    {
        $db = eZDB::instance();

        $userVisitArray = $db->arrayQuery( "SELECT last_visit_timestamp FROM ezuservisit WHERE user_id=$this->ContentObjectID" );
        if ( isset( $userVisitArray[0] ) )
        {
            return $userVisitArray[0]['last_visit_timestamp'];
        }
        else
        {
            return time();
        }
    }
1023559
public function getLastModified()
	{
		if (is_null($this->lastModified)) {
			$this->lastModified = new \DateTime('@' . filemtime($this->path));
		}
		return $this->lastModified;
	}
692303
private function hoursSinceUpdate()
    {
        $file = $this->storage('.updated');  // Last updated file
        // Return 0 if no file
        if (!file_exists($file)) {
            return static::UPDATE_INTVL_H;
        }

        // Return hours since last update
        return (time() - file_get_contents($file)) / 3600;
    }
1278114
public function get_last_updated($asstring = false) {
        $data = $this->data;
        $time = null;

        if (isset($data[Parser::INDEX_LISTS_LIST_UPDATED])) {
            $time = $data[Parser::INDEX_LISTS_LIST_UPDATED][0]['value'];
            $time = strtotime($time);
        }

        if ($asstring && $time) {
            return $this->contextual_time($time);
        }

        return $time;
    }
661945
public static function getCurrentTimestamp()
    {
        $database = self::getDatabase();
        $sql = 'SELECT CURRENT_TIMESTAMP';
        return $database->query($sql)->fetch(\PDO::FETCH_NUM)[0];
    }
214660
public function getExecutionTime()
    {
        if(!$this->getFinishedAt()) {
            $now = new \DateTime();
            return $now->getTimestamp() - $this->getCreatedAt()->getTimestamp();
        } else {
            return $this->getFinishedAt()->getTimestamp() - $this->getCreatedAt()->getTimestamp();
        }
    }
1016131
public function getLastBackupTime()
    {
        $backups = $this->listBackups();
        if (is_array($backups)) {
            if (!empty($backups)) {
                $timestamp = $backups[0]->timestamp;

                return $timestamp;
            }

            return 'There is no backup available.';
        }

        return $backups;
    }
841273
public function last ()
	{
		if (!is_array($this->data)) return $this->data;
		if (!count($this->data)) return null;
		end($this->data);
		return $this->data[key($this->data)];
	}