News for hackers. Stuff that matters.
Re:Calculate the weekday of any past or future date within s... by OscarCunningham on Sunday January 14, 2024 @04:30AM (#38988892)
For January and February dates, the 'Memorable date' is adjusted based on whether it's a leap year or not. Would it be easier to pretend that they are part of the previous year, by subtracting 1 from the year whenever the month is January and February? That way the check for leap years is baked into the calculation you're already doing based on the year.

There are no comments on this comment yet.