You are here

function cmfcCalendarV1Iranian::isKabise in Calendar Systems 7.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
  2. 8.2 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
  3. 5 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
  4. 6.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
  5. 6 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
  6. 7.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
  7. 7 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
1 call to cmfcCalendarV1Iranian::isKabise()
cmfcCalendarV1Iranian::isDateValid in calendar/v1/calendarSystems/iranian.class.inc.php

File

calendar/v1/calendarSystems/iranian.class.inc.php, line 589

Class

cmfcCalendarV1Iranian

Code

function isKabise($year) {
  $result = false;
  if ($year >= 1244 && $year <= 1342) {
    $val = $year % 33;
    if (in_array($val, array(
      1,
      5,
      9,
      13,
      17,
      22,
      26,
      30,
    ))) {
      $result = true;
    }
  }
  if ($year >= 1343 && $year <= 1472) {
    $val = $year % 33;
    if (in_array($val, array(
      1,
      5,
      9,
      13,
      18,
      22,
      26,
      30,
    ))) {
      $result = true;
    }
  }
  return $result;
}