You are here

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

Determines if the instance is a leap year

Return value

bool

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function isLeapYear() {
  return $this
    ->format('L') === '1';
}