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

Breadcrumb

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

function DateTimePlus::getPhpDateTime

Gets a clone of the proxied PHP \DateTime object wrapped by this class.

Return value

\DateTime A clone of the wrapped PHP \DateTime object.

File

core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 728

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

public function getPhpDateTime() {
    return clone $this->dateTimeObject;
}

API Navigation

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