Get the number of days in a month for a given year.
Defined in <SDL3/SDL_time.h>
int SDL_GetDaysInMonth(int year, int month);
int | year | the year. |
int | month | the month [1-12]. |
(int) Returns the number of days in the requested month or -1 on failure; call SDL_GetError() for more information.
This function is available since SDL 3.1.3.