logoalt Hacker News

unkl_today at 1:54 PM2 repliesview on HN

Posted on HN in 2126: 100 years ago, someone wrote a test for servo that included an expiry in 2126


Replies

jerftoday at 2:00 PM

I've got some tests in active code bases that are using the end of 32-bit Unix time as "we'll never get there". That's not because the devs were lazy, these tests date from when that was the best they could possibly do. They're on track to be cycled out well before then (hopefully this year), so, hopefully, they'll be right that their code "won't get there"... but then there's the testing and code that assumes this that I don't know about that may still be a problem.

"End of Unix time" is under 12 years now, so, a bit longer than the time frame of this test, but we're coming up on it.

show 1 reply
yetihehetoday at 1:58 PM

Now I feel bad for using (system foundation timestamp)+100 years as end of "forever" ownership relations in one of my systems. Looking now, it's only 89 years left. I think I should use nulls instead.

show 1 reply