You are here

function cmfcCalendarV1Arabic::yearTotalDays in Calendar Systems 6

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
  2. 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
  3. 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
  4. 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
  5. 7 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::yearTotalDays()
  6. 7.2 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 569

Class

cmfcCalendarV1Arabic

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;
}