MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / isLeapYear

Function isLeapYear

src/OpenLoco/src/Date.cpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 static std::pair<MonthId, uint8_t> getMonthDay(int32_t dayOfYear);
10
11 bool isLeapYear(const int year)
12 {
13 return year % 4 == 0;
14 }
15
16 uint32_t getCurrentDay()
17 {

Callers 1

getMonthTotalDayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected