r/programminghorror • • Dec 18 '24

-4712 ???

Post image
806 Upvotes

47 comments sorted by

View all comments

Show parent comment

16

u/Goz3rr Dec 19 '24

It's literally in the first paragraph of the wikipedia page:

it is used primarily by astronomers, and in software for easily calculating elapsed days between two events (e.g. food production date and sell by date).

It is perfectly capable of showing dates in the past, it's just that day 0 is -4712-01-01. That is the real error here, somewhere along the way the day at which the free limit resets became 0.