A Very Fast Date Algorithm

The article outlines a faster way to turn a day number into a calendar date. It replaces most divisions with a few multiplications and shifts, and it simplifies the process by counting backward from a fixed year. Pseudocode and benchmarks are included to compare with older methods.

It's a nice look at a common routine that still has room for refinement.

submitted by /u/AWildMonomAppears
[link] [comments]