private function Date::isLeap in PersianTools 7
Checks the specified year for a leap year The return value is the number of the leap year (1 - 31)in one cycle for leap years and false for normal years
@access private
Parameters
int $yearValue:
Return value
mixed
1 call to Date::isLeap()
- Date::format in includes/
Date.php - this is a clone of the internal php function date() with a few exceptions in the acceptable parameters
File
- includes/
Date.php, line 279
Class
Namespace
ShamsiCode
private function isLeap($yearValue) {
$Rasad = $this
->calcRasad($yearValue);
$yrNam = $Rasad % 2820;
$yrNam = $yrNam % 128;
$leapCount = array_search($yrNam, $this->_khayamii);
return $leapCount;
}