You’re Wrong About Dates — And Your Code is Lying to You
Every date library you’ve ever used is lying to you.
They all pretend that a date is a precise moment — a frozen point on a timeline.
2023? Must mean January 1st at 00:00:00.000 UTC.
March 2024? Clearly March 1st, 00:00 UTC.
March 15th, 2024? Sure, March 15th at the stroke of midnight.
But that’s not how humans think.
When you say “2023”, you mean the whole year. “March 2024”? The entire month. Even “March 15th” means the full day, not some arbitrary nanosecond.
We’ve been forced into fake preci...
Read more at metaduck.com