get_month_length() function
Get the number of days in a month
Syntax
static uint8_t get_month_length(int32_t year,
int32_t month);
Arguments
month
a month. The range is basically [1..12] but [-11..0] or [13..24] is also supported to handle next/prev. year
Return value
[28..31]