You are here

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

Determines if the instance is within next year

Return value

bool

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function isNextYear() {
  return $this->year === static::now($this
    ->getTimezone())
    ->addYear()->year;
}