Counting the days, revisited
Summary
A technical deep-dive revisiting Gregorian to Julian Day number conversion, presenting an improved Rust-based implementation and explaining the math behind date calculations. It covers Julian years, Gregorian corrections, month patterns, leap year tests, epoch choices, and compiler/optimization considerations, with code samples and references to Hacker’s Delight.