You are here

function cmfcCalendarV1Arabic::monthStartDay in Calendar Systems 8

Same name and namespace in other branches
  1. 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
  2. 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
  3. 6 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
  4. 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
  5. 7 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
  6. 7.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()

Find num of Day Begining Of Month ( 0 for Sat & 6 for Sun)

File

calendar/v1/calendarSystems/arabic.class.inc.php, line 565

Class

cmfcCalendarV1Arabic

Code

function monthStartDay($month, $day, $year) {
  list($jyear, $jmonth, $jday) = $this
    ->fromGregorian($year, $month, $day);
  list($year, $month, $day) = $this
    ->toGregorian($jyear, $jmonth, "1");
  $timestamp = parent::mktime(0, 0, 0, $month, $day, $year);
  return $this
    ->phpDate("w", $timestamp);
}