You are here

public static function DatexJalali::isLeap in Datex 7.2

Returns non zero if given year is a leap year.

Overrides DatexCalendarIterface::isLeap

File

datex_api/DatexJalali.inc, line 425
Jalali calendar for datex.

Class

DatexJalali
Jalali calendar for datex.

Code

public static function isLeap($year) {
  $rasad = self::observationYear($year);
  $year = $rasad % 2820 % 128;
  $is_leap = array_search($year, self::$khayamii);
  return $is_leap;
}