3 ms·
Too simple. https://www.bbc.com/future/article/20240228-leap-year-the-imperfect-solution-to-fix-the-calendar https://www.bbc.com/future/article/20240228-leap-ye
by bjt 2y ago
Too simple. https://www.bbc.com/future/article/20240228-leap-year-the-imperfect-solution-to-fix-the-calendar https://www.bbc.com/future/article/20240228-leap-year-the-im...
- worstspotgain 2y agoNot for the task at hand. The initial d was divided down from an unsigned 32-bit timestamp in seconds from the Unix epoch (hence the 1970.) It accounts for 2000 (leap) and 2100 (not leap), after which the u32 overflows.