Checks whether month is supported

@param string $month
@return boolean
776088
private function isValidMonth($month)
    {
        $list = array(
            self::MONTH_JANUARY,
            self::MONTH_FEBRUARY,
            self::MONTH_MARCH,
            self::MONTH_APRIL,
            self::MONTH_MAY,
            self::MONTH_JUNE,
            self::MONTH_JULY,
            self::MONTH_AUGUST,
            self::MONTH_SEPTEMBER,
            self::MONTH_OCTOBER,
            self::MONTH_NOVEMBER,
            self::MONTH_DECEMBER
        );

        return in_array($month, $list);
    }
1218319
public function ymdToJd($year, $month, $day)
    {
        if ($month < 1 || $month > $this->monthsInYear()) {
            throw new InvalidArgumentException('Month ' . $month . ' is invalid for this calendar');
        }

        $epbase = $year - (($year >= 0) ? 474 : 473);
        $epyear = 474 + $this->mod($epbase, 2820);

        return
            $day +
            (($month <= 7) ? (($month - 1) * 31) : ((($month - 1) * 30) + 6)) +
            (int) ((($epyear * 682) - 110) / 2816) +
            ($epyear - 1) * 365 +
            (int) (floor($epbase / 2820)) * 1029983 +
            $this->jdStart() - 1;
    }
56838
public static function extensionShortMonth($month) {
        $mes = null;
        switch ($month) {
            case '01':
            case 1:
                $mes = "Jan";
                break;
            case '02':
            case 2:
                $mes = "Fev";
                break;
            case '03':
            case 3:
                $mes = "Mar";
                break;
            case '04':
            case 4:
                $mes = "Abr";
                break;
            case '05':
            case 5:
                $mes = "Mai";
                break;
            case '06':
            case 6:
                $mes = "Jun";
                break;
            case '07':
            case 7:
                $mes = "Jul";
                break;
            case '08':
            case 8:
                $mes = "Ago";
                break;
            case '09':
            case 9:
                $mes = "Set";
                break;
            case '10':
            case 10:
                $mes = "Out";
                break;
            case '11':
            case 11:
                $mes = "Nov";
                break;
            case '12':
            case 12:
                $mes = "Dez";
                break;
        }

        return $mes;
    }
1033771
public static function of(int $month, int $day) : MonthDay
    {
        Field\MonthOfYear::check($month);
        Field\DayOfMonth::check($day, $month);

        return new MonthDay($month, $day);
    }
1287241
public function isMonthInDateFormat(string $dateFormat)
    {
        return false !== strpos($dateFormat, 'F') ||
            false !== strpos($dateFormat, 'M') ||
            false !== strpos($dateFormat, 'm') ||
            false !== strpos($dateFormat, 'n');
    }
125331
public function isPisces()
    {
        return ($this->month === self::MONTH_FEBRUARY) && ($this->day >= 20) && ($this->day <= 30) || ($this->month === self::MONTH_MARCH) && ($this->day <= 20);
    }
1079539
public static function events_for_month($month)
    {
        $nextMonth = strtotime('last day of this month', strtotime($month));

        $currMonthStr = date('Y-m-d', strtotime($month));
        $nextMonthStr = date('Y-m-d', $nextMonth);

        $sql =    "(StartDateTime BETWEEN '$currMonthStr' AND '$nextMonthStr')" .
                        " OR " .
                        "(EndDateTime BETWEEN '$currMonthStr' AND '$nextMonthStr')";


        $events = PublicEvent::get()
            ->where($sql);

        return $events;
    }
125908
private function supportsAction($action)
    {
        if (null === $this->getSupportedActions()) {
            return true;
        }

        return in_array($action, $this->getSupportedActions());
    }
573466
public static function nextMonth($month, $year)
    {
        if ($year >= 1970) {
            if ($month >= 12) {
                $nextMonth = 1;
                $yearMonth = $year + 1;
            } else {
                $nextMonth = $month + 1;
                $yearMonth = $year;
            }
        }

        return array('month' => $nextMonth, 'year' => $yearMonth);
    }
666023
private function getMonthTitle( int $monthnum = 0 ) {
		global $wp_locale;
		$date_format = get_option('date_format');
		if ( in_array( $date_format, [
			'DATE_COOKIE',
			'DATE_RFC822',
			'DATE_RFC850',
			'DATE_RFC1036',
			'DATE_RFC1123',
			'DATE_RFC2822',
			'DATE_RSS'
		] ) ) {
			$month_format = 'M';
		} elseif ( in_array( $date_format, [
			'DATE_ATOM',
			'DATE_ISO8601',
			'DATE_RFC3339',
			'DATE_W3C'
		] ) ) {
			$month_format = 'm';
		} else {
			preg_match('/(^|[^\\\\]+)(F|m|M|n)/', str_replace( '\\\\', '', $date_format ), $m );
			if ( isset( $m[2] ) ) {
				$month_format = $m[2];
			} else {
				$month_format = 'F';
			}
		}

		switch ( $month_format ) {
			case 'F' :
				$month = $wp_locale->get_month( $monthnum );
				break;
			case 'M' :
				$month = $wp_locale->get_month_abbrev( $wp_locale->get_month( $monthnum ) );
				break;
			default :
				$month = $monthnum;
				break;
		}

		return $month;
	}
1324314
private function validateDate(int $year, int $month, int $day): bool
    {
        if (!$this->validateMonth($month)) {
            return false;
        }
        if (!$this->validateDay($day)) {
            return false;
        }
        if (!\checkdate($month, $day, $year)) {
            return false;
        }
        return true;
    }
1235012
protected static function is_format_supported($format) {
        $formats = self::fetch_supported_formats();

        $format = trim(\core_text::strtolower($format));
        return in_array($format, $formats);
    }
1314220
public static function isValideDate($year, $month, $day) {
        $dayLastMonthJalali = static::isLeapYear($year) && ($month == 12) ? 30 : static::$daysMonthJalali[intval($month)-1];
        return $year >= 1 && $year <= 32766
        && $month >= 1 && $month <= 12
        && $day >= 1 && $day <= $dayLastMonthJalali;
    }
271147
public function monthLengthDays(int $month, int $year = null) : int
    {
        switch ($month) {
            case 1:
            case 3:
            case 5:
            case 7:
            case 8:
            case 10:
            case 12:
                return 31;
            case 4:
            case 6:
            case 9:
            case 11:
                return 30;
            case 2:
                return !date('L', $year === null ? $this->getTimestamp() : mktime(1, 1, 1, 2, 1, $year)) ? 28 : 29;
        }
        throw new \InvalidArgumentException('Arg month[' . $month . '] is not 1 through 12.');
    }
989116
private static boolean checkDate(Calendar cal, int date, int month) {
		return cal.get(Calendar.DATE) == date && cal.get(Calendar.MONTH) == month;
	}
516984
public function supports($feature)
    {
        if (!$this->controller) {
            return false;
        }

        $s = 'support'.$feature;

        return $this->controller->$s;
    }
999156
public function getSeasonMonthName($season = null, $month = null)
    {
        if ($season === null) {
            $season = $this->getSeason();
        }
        if ($month === null) {
            $month = $this->getMonth();
        }
        if ($month <= 0) {
            $month += count($this->monthNames);
        }
        $idx = ($season - 1) * 3 + ($month - 1);

        return $this->monthNames[$idx];
    }