You are here

public static function Carbon::hasTestNow in Persian Date for Drupal 8 8.4

Determine if there is a valid test instance set. A valid test instance is anything that is not null.

Return value

bool true if there is a test instance, otherwise false

2 calls to Carbon::hasTestNow()
Carbon::create in src/Library/Carbon/Carbon.php
Create a new Carbon instance from a specific date and time.
Carbon::__construct in src/Library/Carbon/Carbon.php
Create a new Carbon instance.

File

src/Library/Carbon/Carbon.php, line 1066

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public static function hasTestNow() {
  return static::getTestNow() !== null;
}