src/Route/UpdatesRoute.php
public function query(DateTime $fromTime, DateTime $toTime = null): array
    {
        $options = ['query' => ['fromTime' => $fromTime->getTimestamp()]];
        if ($toTime !== null) {
            $options['query']['toTime'] = $toTime->getTimestamp();
        }

        $json = $this->parent->performAPICallWithJsonResponse('get', '/updated/query', $options);
        return DataParser::parseDataArray($json, UpdateInfo::class);
    }
public function query(DateTime $fromTime, DateTime $toTime = null): array
    {
        $options = ['query' => ['fromTime' => $fromTime->getTimestamp()]];
        if ($toTime !== null) {
            $options['query']['toTime'] = $toTime->getTimestamp();
        }

        $json = $this->parent->performAPICallWithJsonResponse('get', '/updated/query', $options);
        return DataParser::parseDataArray($json, UpdateInfo::class);
    }
public function query ( DateTime $ fromTime , DateTime $ toTime = null ) : array { $ options = [ 'query' => [ 'fromTime' => $ fromTime -> getTimestamp ( ) ] ] ; if ( $ toTime !== null ) { $ options [ 'query' ] [ 'toTime' ] = $ toTime -> getTimestamp ( ) ; } $ json = $ this -> parent -> performAPICallWithJsonResponse ( 'get' , '/updated/query' , $ options ) ; return DataParser :: parseDataArray ( $ json , UpdateInfo :: class ) ; }
Fetches the series that were updated between the given timestamps. If the toTime variable is left null, the API
will take the current timestamp for this.

@param DateTime      $fromTime Fetch series that were updated after this timestamp.
@param DateTime|null $toTime   Fetch series that were updated before this timestamp.

@return array An array with UpdateInfo instances.
Fetches the series that were updated between the given timestamps . If the toTime variable is left null the API will take the current timestamp for this .