Slightly off topic but I wonder how you handle time where dilation is present. For example if a spacecraft travels to mars and there is mars local time, plus time dilation from the journey, when does a transmission start from a reference frame? Not UTC related for sure! Or is it? And then what happens if someone else goes there in a different orbital pattern and the dilation is different. and then there is the questi…
If two spacecraft start going fast enough in different directions, they can disagree about what order two different events happened in. At that point, it's not enough to give an event a single time coordinate in some reference frame; you also need to know its position in space.
UTC Is Enough for Everyone, Right?
51–60 of 321 posts
Re: UTC Is Enough for Everyone, Right?
#52> Properly storing timezone-aware times I'd just like to point out that a lot of RDBMSs support storing date and time alongside timezone information directly without using two separate fields. SQL Server has datetimeoffset, PostgreSQL has timestamp with time zone, and Oracle has timestamp with time zone. I think MySQL does as well, but I seem to recall something strange about it. Or maybe that's just me expecting MyS…
PostgreSQL's "timestamp with time zone" doesn't store timezone, it converts the time to UTC and stores that, and on retrieval converts the value to the connection's time zone.
Re: UTC Is Enough for Everyone, Right?
#53Love this article, but one thing it skipped on was more in-depth on Leap Seconds. You see, UTC, is kinda like another human-made-up timezone. Humans made up some rules, and UTC is a 37 second offset from TAI / International Atomic Time: https://en.wikipedia.org/wiki/International_Atomic_Time
https://developers.google.com/time/smear
Re: UTC Is Enough for Everyone, Right?
#54The author expected this comment, but i'd still like to note that this website saturates at least one core of my laptop, more depending where I scroll.
Re: UTC Is Enough for Everyone, Right?
#55So the article seems to imply you should store all timestamps as UTC (with an additional timezone string ID). But for events in the future that needs to happen on a specific "wall clock point in time", it might be better to actually store the yyyy-mm-dd hh:mm:ss as a string with a timezone next to it, because timezones can and do change often unpredictably. If you pre-calculate what "4.00pm next August 1st" is as a U…
Re: UTC Is Enough for Everyone, Right?
#56Love this article, but one thing it skipped on was more in-depth on Leap Seconds. You see, UTC, is kinda like another human-made-up timezone. Humans made up some rules, and UTC is a 37 second offset from TAI / International Atomic Time: https://en.wikipedia.org/wiki/International_Atomic_Time
Really, it's TAI that should be enough for everyone.
Re: UTC Is Enough for Everyone, Right?
#57Earlier quoted context omitted.
Software is built for humans to use in the real world. While reshaping the entire world might make the code simpler, it's not a practical solution.
Indeed it simplifies software, but it also makes life much easier for humans trying to coordinate communication across timezones. There's probably some research somewhere estimating the cost to business (or loss of revenue) from mistakes in doing timezone conversions. In the simplest case, if you have a business call with someone halfway around the world, and one of you has recently gone into or out of daylight savin…
So let me say this: _coming up with the ideal system is not hard_. But how will you transition the world from its current state to this ideal state? Consider that the metric system (or SI), which is much better than the US system of measures, has still not been adopted in the US. Why? Because the problem of transitioning between systems is called politics.
Re: UTC Is Enough for Everyone, Right?
#58The author expected this comment, but i'd still like to note that this website saturates at least one core of my laptop, more depending where I scroll.
But it does look gorgeous and it absolutely screams luxury layout and typesetting... so there’s that.
Re: UTC Is Enough for Everyone, Right?
#59I have been thinking a lot lately that we are trying to solve class of XY Problem. Universal time is in part about trying to order events in a strict order. Probelm is, nobody observed that order. Later we infer things about the system based on this chronology but it’s completely fictitious and we have to stretch our brains to explain the state of the system. The Java Memory Model, and subsequently several other lang…
Re: UTC Is Enough for Everyone, Right?
#60> Properly storing timezone-aware times I'd just like to point out that a lot of RDBMSs support storing date and time alongside timezone information directly without using two separate fields. SQL Server has datetimeoffset, PostgreSQL has timestamp with time zone, and Oracle has timestamp with time zone. I think MySQL does as well, but I seem to recall something strange about it. Or maybe that's just me expecting MyS…
> I'd just like to point out that a lot of RDBMSs support storing date and time alongside timezone information directly without using two separate fields. SQL Server has datetimeoffset, PostgreSQL has timestamp with time zone, and Oracle has timestamp with time zone. PostgreSQL's "timestamp with time zone" doesn't store timezone, it converts the time to UTC and stores that, and on retrieval converts the value to the…