Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FDateTime
Description
Checks whether the given year is a leap year.
A leap year is a year containing one additional day in order to keep the calendar synchronized with the astronomical year. All years divisible by 4, but not divisible by 100 - except if they are also divisible by 400 - are leap years.
| Name | IsLeapYear |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/DateTime.h |
| Include Path | #include "Misc/DateTime.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/DateTime.cpp |
static bool IsLeapYear
(
int32 Year
)
true if the year is a leap year, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Year | The year to check. |