SDL_GetDaysInMonth - Man Page

Get the number of days in a month for a given year.

Header File

Defined in SDL3/SDL_time.h

Synopsis

#include "SDL3/SDL.h"

int SDL_GetDaysInMonth(int year, int month);

Function Parameters

year

the year.

month

the month [1-12].

Return Value

Returns the number of days in the requested month or -1 on failure; call SDL_GetError () for more information.

Availability

This function is available since SDL 3.2.0.

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS