function cmfcCalendarV1Arabic::monthStartDay in Calendar Systems 8
Same name and namespace in other branches
- 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
- 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
- 6 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
- 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
- 7 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::monthStartDay()
- 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
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);
}