Skip to content

Conversation

@LeftofZen
Copy link
Contributor

fixes #3547

@LeftofZen LeftofZen changed the title Leap year calc now obeys 100 and 400 year rules Change game calendar to Gregorian calendar, fixing leap year calcs Dec 16, 2025
// Count the years and add an extra day for when there isn't leap year
if (day > kDaysInYear)
auto y = kBaseYear;
while (totalDays > 365)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't that efficient, if anyone can come up with a closed form solution that'd be cool

@AaronVanGeffen AaronVanGeffen added this to the v25.12+ milestone Dec 16, 2025
@AaronVanGeffen
Copy link
Member

AaronVanGeffen commented Dec 16, 2025

This changes the simulation, if slightly, so I suggest we consider this for the next milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants