You are here

public function Response::getLastModified in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::getLastModified()

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

Return value

\DateTime|null A DateTime instance or null if the header does not exist

Throws

\RuntimeException When the HTTP header is not parseable

File

vendor/symfony/http-foundation/Response.php, line 807

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

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