Returns the total number of days in the specified month of a given year (1-indexed month, 1..12).
Operates purely on integer arithmetic with zero Date allocations.
Parameters
year: number
The full calendar year (e.g. 2026)
month: number
The 1-indexed month number (1 for January through 12 for December)
Returns the total number of days in the specified month of a given year (1-indexed month, 1..12). Operates purely on integer arithmetic with zero Date allocations.