logoalt Hacker News

jchw04/24/20251 replyview on HN

32-bit UNIX timestamps are often signed so you can actually go before that, but most UNIX timestamps are 64-bit now, which can represent quite a larger range. And SQL datetime types might have a totally different range.

Not that it really matters; deleted_at times for your database records will rarely predate the existence of said database.


Replies

noman-land04/24/2025

It's not about the scale, it's that `if (0)` will evaluate to `false` in many languages.

show 2 replies