You are here

public function Carbon::eq in Persian Date for Drupal 8 8.4

Determines if the instance is equal to another

Parameters

Carbon $dt:

Return value

bool

2 calls to Carbon::eq()
Carbon::equalTo in src/Library/Carbon/Carbon.php
Determines if the instance is equal to another
Carbon::ne in src/Library/Carbon/Carbon.php
Determines if the instance is not equal to another

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function eq(Carbon $dt) {
  return $this == $dt;
}