function cmfcCalendarV1Iranian::isKabise in Calendar Systems 8.2
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
- 5 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
- 6.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
- 6 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
- 7.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
- 7 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::isKabise()
- 7.2 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
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;
}