You are here

public static function DateTimeHelper::getDayCountInMonth in Content Planner 8

Get the count of days in a given month of a given year.

Parameters

int $month:

int $year:

Return value

int

1 call to DateTimeHelper::getDayCountInMonth()
Calendar::buildCalendarDataStructure in modules/content_calendar/src/Component/Calendar.php
Build data structure for Calendar.

File

modules/content_calendar/src/DateTimeHelper.php, line 59

Class

DateTimeHelper

Namespace

Drupal\content_calendar

Code

public static function getDayCountInMonth($month, $year) {
  return cal_days_in_month(CAL_GREGORIAN, $month, $year);
}