Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc > API/Runtime/Core/Misc/FDateTime
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/DateTime.h |
Include | #include "Misc/DateTime.h" |
Source | /Engine/Source/Runtime/Core/Private/Misc/DateTime.cpp |
static bool IsLeapYear
&40;
int32 Year
&41;
Remarks
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. true if the year is a leap year, false otherwise.
Parameters
Name | Description |
---|---|
Year | The year to check. |