Get the latest tech news

A Fast 64-Bit Date Algorithm (30–40% faster by counting dates backwards)


Counting years backwards unlocks faster speed. The first date algorithm to use only 4 multiplications, instead of 7+

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of dates

dates

Photo of Bit Date Algorithm

Bit Date Algorithm

Related news:

News photo

Summer Game Fest 2026 dates revealed by Geoff Keighley

News photo

Netflix sets opening dates for its destination entertainment hubs

News photo

You're Wrong About Dates – and Your Code Is Lying to You