Why does subtracting these two times give a strange result? (2011)
stackoverflow.com
stackoverflow.com
In complete seriousness, I hope a time comes eventually where cosmology has advanced to a point where we have a measurement of current time relative to the Big Bang accurate to the nano second. Given issues of relativity and such, it would be a value only local to us, but that's more than fine. When we start hashing out time values with aliens, that will be a different problem.
The problem is that time may not function correctly in the early universe, (say around plank time).
Another maybe more practical idea is to take the average temperature of the background radiation and peg time to the way it (or the average temperature of the universe ) cools down.
Or peg time to the Hubble flow. Since we now know the Hubble flow changes over time, you could peg a measurement of time to that.
Neither of these can give us datetime numbers for the very early universe but time may be screwed up then anyway: time maybe nonsense then.
The real problem is that we need a point of reference that is external to our own frame of reference. Luckily, we have one.
Light.
Light moves at the same speed no matter what your frame of reference is. It's theorized that the early universe was dark for a very long time because any emitted photons were absorbed by other matter, because things were so dense. After a while, matter got ionized and expansion kicked in and the universe cleared up. This was the time of the first stars.
So, we need realllly good telescopes. Fortunately they're being built. The idea is that you have to find the light from the first stars. Measure the redshift and find some type 1a supernovas from the period to give you distance. (Standard candles.) Then you have a base measurement of time.
One problem is the redshift. There was a recent paper talking about how the earliest galaxies are so redshifted by now that their light is getting lost in the CMB.
So, this is "possible" only in the sense that if constrained to be useless it would theoretically be possible, but not practical.
Awesome, let's get right on that :-)
If you assume you are storing times in your time zone, why can't you determine the correct time the timestamp refers to at a later date?
Why is your location important?
var d = new Date(2013, 9, 20);
For 200 million people in the world, d.getDate() will be 19.Now, are you sure your app doesn't break when that happens?
The other countries that do this are Chile, Paraguay, Cuba, Greenland, Iran, Lebanon, Syria, West Bank, and Gaza Strip. (I think I got them all..)
The fact you could run this, take a flight somewhere, run it again and get totally different results seems unsettling. (Same thing applies to numeric parsing/display functions.)
I ran into one customer having problems authenticating to our service; turns out his clocks were on local time, not UTC. He seemed upset about that, until I pointed out that his billing records will get an extra hour, or go negative, during DST transitions. Changed his tune pretty quickly.
Another customer handled it a different way: "Oh, the platform we use crashes when a time transition occurs, so we never generate records spanning such times."
All that matters is that the question/answer is of importance or interest to developers, not who asked or answered it.
After that, it only takes some quick googling to figure out what happened at the end of 1927 that could affect things.
I think he's the #1 answerer on stackoverflow. He always answers extremely fast and correct. Sometimes i wonder if SO is his full time job. In any case, any senior developer who has worked a lot with time zones should have known where to look for the answer so it's not entirely unbelievable he could answer it so fast. The answer has also been edited, the first version, after 16mins, was just half as long.