keith
August 9, 2019, 1:26am
2
Dates are times. They describe a unique moment in time. Time zones only relate to “how does this date look to me if I’m in [certain location] at that time?”
Because dates are hard, unfortunately, and JavaScript date handling confuses the issue somewhat. I’ve written a lot about this and provide some pointers to past helpful writings on this topic.
The main thing to understand (and understanding this will alleviate much confusion about dates) is this:
A date object (a thing of the date data type) describes a unique point in time.
A “date” in programming is not what you are thinking of when we colloquially talk about dates. In human heads, a “dat…