目次 - SDL 3.0 API(機能別) - 日時 - SDL_GetDaysInMonth
SDL_GetDaysInMonth
与えられた年の月の日数を求める
ヘッダ
SDL3/SDL_time.h
構文
int SDL_GetDaysInMonth(int year, int month);
引数
| int | year | 年 |
| int | month | 月 [1-12] |
戻り値
(int) その月の日数を戻す. 月が不正のとき-1を戻す.
SDL_GetError()を呼んで詳細を知ることができる.
バージョン
SDL 3.2.0以降
SDL Wikiへのリンク
SDL_GetDaysInMonth - SDL Wiki