Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DateHeader.php

function DateHeader::setDateTime

Set the date-time of the Date in this Header.

If a DateTime instance is provided, it is converted to DateTimeImmutable.

2 calls to DateHeader::setDateTime()
DateHeader::setBody in vendor/symfony/mime/Header/DateHeader.php
DateHeader::__construct in vendor/symfony/mime/Header/DateHeader.php

File

vendor/symfony/mime/Header/DateHeader.php, line 53

Class

DateHeader
A Date MIME Header.

Namespace

Symfony\Component\Mime\Header

Code

public function setDateTime(\DateTimeInterface $dateTime) : void {
    $this->dateTime = \DateTimeImmutable::createFromInterface($dateTime);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal