MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getLastDayOfCurrentMonth

Method getLastDayOfCurrentMonth

game/state/gametime.cpp:172–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172unsigned int GameTime::getLastDayOfCurrentMonth() const
173{
174 return getPtime(this->ticks).date().end_of_month().year_month_day().day;
175}
176
177unsigned int GameTime::getDay() const { return (this->ticks + TICKS_PER_DAY - 1) / TICKS_PER_DAY; }
178

Callers 1

eventOccurredMethod · 0.80

Calls 1

getPtimeFunction · 0.85

Tested by

no test coverage detected