3 ms·
> No human uses “less that 24 hours” as the definition of “yesterday”. Computers, unfortunately, do Correction: computers programmed by programmers who believe
by jameshart 3y ago
> No human uses “less that 24 hours” as the definition of “yesterday”. Computers, unfortunately, do
Correction: computers programmed by programmers who believe falsehoods about time zones and dates do.
It’s entirely possible to unambiguously slide a timestamp into the local calendar of your user and from that determine what the local date offset is. If you just take floor(now - time / 86400) then of course you’re going to produce garbage.