public function Response::getDate

Same name in this branch

Returns the Date header as a DateTime instance.

@api

Return value

\DateTime A \DateTime instance

Throws

\RuntimeException When the header is not parseable

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function getDate() {
  return $this->headers
    ->getDate('Date');
}