Menu Samaritan's Purse

CAL_DAYS_IN_MONTH

Return the number of days in a month for a given year and calendar

SYNTAX

cal_days_in_month ( int $calendar , int $month , int $year ) : int

PARAMETERS

calendar

Calendar to use for calculation

NUMBER NAME DESCRIPTION
0 CAL_GREGORIAN Gregorian Calendar
1 CAL_JULIAN Julian Calendar
2 CAL_JEWISH Jewish Calendar
3 CAL_FRENCH French Revolutionary Calendar
month

Month in the selected calendar

year

Year in the selected calendar

RETURN

The length in days of the selected month in the given calendar

EXAMPLES

CALENDAR | CAL_GREGORIAN

31

CALENDAR | CAL_JULIAN

31

CALENDAR | CAL_JEWISH

30

CALENDAR | CAL_FRENCH

30

PHP