private function Date::calcRasad in PersianTools 7
calculates the years from reference Observation year
@access private
Parameters
int $yearValue:
boolean $calendarType:
Return value
int
2 calls to Date::calcRasad()
- Date::dayOfWeek in includes/
Date.php - returns weekday of the specified day of the year
- Date::isLeap in includes/
Date.php - 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
File
- includes/
Date.php, line 264
Class
Namespace
ShamsiCode
private function calcRasad($yearValue) {
$Rasad = $yearValue + 2346;
return $Rasad;
}