You are here

class Timestamp in CloudFlare 8

Timestamp class to get datetime.

@todo find a better approach. This was a hack to unblock automated testing.

Hierarchy

Expanded class hierarchy of Timestamp

1 string reference to 'Timestamp'
cloudflare.services.yml in ./cloudflare.services.yml
cloudflare.services.yml
1 service uses Timestamp
cloudflare.timestamp in ./cloudflare.services.yml
Drupal\cloudflare\Timestamp

File

src/Timestamp.php, line 10

Namespace

Drupal\cloudflare
View source
class Timestamp implements CloudFlareTimestampInterface {

  /**
   * {@inheritdoc}
   */
  public function now() {
    return new \DateTime();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Timestamp::now public function Gets the current DateTime. Overrides CloudFlareTimestampInterface::now