function cmfcCalendarV1Arabic::yearTotalDays in Calendar Systems 7.2
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
- 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
- 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
- 6 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
- 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
- 7 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
Find days in this year untile now
1 call to cmfcCalendarV1Arabic::yearTotalDays()
- cmfcCalendarV1Arabic::date in calendar/
v1/ calendarSystems/ arabic.class.inc.php - Implementation of PHP date function This is the simplified version by Sina Salek
File
- calendar/
v1/ calendarSystems/ arabic.class.inc.php, line 576
Class
Code
function yearTotalDays($jmonth, $jday, $jyear) {
$year = "";
$month = "";
$year = "";
$result = "";
if ($jmonth == "01") {
return $jday;
}
for ($i = 1; $i < $jmonth || $i == 12; $i++) {
list($year, $month, $day) = $this
->toGregorian($jyear, $i, "1");
$result += lastday($month, $day, $year);
}
return $result + $jday;
}