Function sbg::helpers::getNumberOfDaysInMonth

Function Documentation

uint32_t sbg::helpers::getNumberOfDaysInMonth(uint16_t year, uint8_t month_index)

Get the number of days of the month index.

Parameters:
  • year[in] Year.

  • month_index[in] Month index [1..12].

Returns:

Number of days in the month.