You are here

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

Determines if the instance is a long year

Return value

bool

See also

https://en.wikipedia.org/wiki/ISO_8601#Week_dates

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function isLongYear() {
  return static::create($this->year, 12, 28, 0, 0, 0, $this->tz)->weekOfYear === 53;
}