You are here

public function Timestamp::now in CloudFlare 8

Gets the current DateTime.

Return value

\DateTime DateTime representing the current time.

Overrides CloudFlareTimestampInterface::now

File

src/Timestamp.php, line 15

Class

Timestamp
Timestamp class to get datetime.

Namespace

Drupal\cloudflare

Code

public function now() {
  return new \DateTime();
}