Add a helper to get the number of days in a given calendar month

This commit is contained in:
Jonathan G Rennison
2024-02-20 18:07:04 +00:00
parent 6e10f01f59
commit 471934e685
2 changed files with 21 additions and 0 deletions

View File

@@ -197,6 +197,8 @@ struct CalTime : public DateDetail::BaseTime<struct CalendarTimeTag> {
static bool IsCalendarFrozen(bool newgame = false);
static Day NumberOfDaysInMonth(Year year, Month month);
/**
* Calculate the year of a given date.
* @param date The date to consider.