3 ms·
> Time zones are a necessary evil, ideally our code doesn't suffer from our petty human concerns. I don't understand this position. The sole purpose of our cod
by squiggleblaz 5y ago
> Time zones are a necessary evil, ideally our code doesn't suffer from our petty human concerns.
I don't understand this position. The sole purpose of our code is to serve "petty" human concerns.
Time zones are certainly not petty human concerns; the notion that we sleep when it's dark and we're active when it's light is fundamental to our nature - as is the fact that we want to coordinate our activity with those around us. Time zones are probably the most effective outworking of this. Some alternatives are conceivable (for instance, we could record times in UTC) but they would effectively introduce the same problems (for instance, if business hours are set to run from 23:00-07:00 in some location, and then as trade patterns change it's agreed to reset them to 22:00-06:00, we need some way to know that we need to reschedule events scheduled for 06:30 in that location but not events scheduled for 06:30 in a different location) along with new ones (for instance, most people would be pretty upset at having the date change in the middle of the day, just because it's convenient in Europe).
Timezones are fundamental to any code that cares about human events in the future or the past.