You are here

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

Determines if the instance is greater (after) than another

Parameters

Carbon $dt:

Return value

bool

4 calls to Carbon::gt()
Carbon::between in src/Library/Carbon/Carbon.php
Determines if the instance is between two others
Carbon::greaterThan in src/Library/Carbon/Carbon.php
Determines if the instance is greater (after) than another
Carbon::isFuture in src/Library/Carbon/Carbon.php
Determines if the instance is in the future, ie. greater (after) than now
Carbon::max in src/Library/Carbon/Carbon.php
Get the maximum instance between a given instance (default now) and the current instance.

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function gt(Carbon $dt) {
  return $this > $dt;
}