SDL_GetDaysInMonth - Man Page

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

Synopsis

#include <SDL3/SDL_time.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.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

Info

SDL 3.4.8 Simple Directmedia Layer SDL3 FUNCTIONS