You are here

function cmfcCalendarV1Iranian::daysInMonth in Calendar Systems 8.2

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

cmfcCalendarV1Iranian

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