function cmfcCalendarV1Iranian::daysInMonth in Calendar Systems 8.2
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::daysInMonth()
- 5 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::daysInMonth()
- 6.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::daysInMonth()
- 6 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::daysInMonth()
- 7.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::daysInMonth()
- 7 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::daysInMonth()
- 7.2 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::daysInMonth()
Find Number Of Days In This Month
File
- calendar/
v1/ calendarSystems/ iranian.class.inc.php, line 693
Class
Code
function daysInMonth($monthId, $ctype = 'gregorian') {
$daysInMonth = array(
'jalali' => array(
'31',
'31',
'31',
'31',
'31',
'31',
'30',
'30',
'30',
'30',
'30',
'29',
),
'gregorian' => array(
'31',
'28',
'31',
'30',
'31',
'30',
'31',
'31',
'30',
'31',
'30',
'31',
),
);
return $daysInMonth[$ctype][$monthId];
}