public function Response::getLastModified

Same name in this branch
  1. 9.x drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php \Guzzle\Http\Message\Response::getLastModified()
  2. 9.x drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php \Symfony\Component\HttpFoundation\Response::getLastModified()

Returns the Last-Modified HTTP header as a DateTime instance.

@api

Return value

\DateTime A DateTime instance

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php, line 792

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function getLastModified() {
  return $this->headers
    ->getDate('Last-Modified');
}