# Why would it be unfortunate for a day length to vary in a planet; other than that Java API developers need to work a few hours more? [closed]

Quoting from the Java Docs:

Unfortunately, as the Earth rotates the length of the day varies. In addition, over time the average length of the day is getting longer as the Earth slows.

I am building a new planet and I was wondering exactly this, should the day lengths be fixed or should they vary as my planet rotates?

I do not care about the developers in my planet, are there any reasons to say "Unfortunately" before the sentence "as the .. rotates the length of the day varies."? (I have not decided the name of my planet yet, hence the "...".

• The length of a solar day (the time between two noons) varies during the year according with the equation of time. Moreover, one second of time was defined so that the average solar day computed for January 1st 1900 was exactly 24 * 60 * 60 = 86400 seconds. Unfortunately, the tidal forces of the Moon slow the rotation down, so that now we need to add one extra second every 18 months or so in order to keep civil time aligned with actual midnight and noon. The point of "unfortunately" is to convey the idea that nothing is uniform or forever. – AlexP Nov 29 '18 at 4:36
• This is "unfortunate" because it is in human nature to seek ideal harmony. Number 86,400 looks perfectly round. Number 86,400.002 looks like an unfortunate mistake. – Alexander Nov 29 '18 at 7:04
• "I do not care about the developers in my planet" - noooooo :( – Pedro A Nov 29 '18 at 11:04
• @KorayTugay "I still do not understand, why is not being uniform unfortunate?" - Because it makes precisely synchronizing anything between two or more systems horrendously complicated and error-prone. Especially is one is using the Java runtime, and another is using .NET, and another is using Node, and each implementation is subtly different and incompatible in terms of when/how they account for the variable duration of a solar day. – aroth Nov 29 '18 at 12:24
• Ok, this was fun, but since the silly title has attracted silly answers, I have to think this should be closed as 'off-topic'. – kingledion Nov 29 '18 at 13:30

Actually, I'd argue the opposite; it would be unfortunate in the long term (in geological scales) for life if the length of a day wasn't lengthening.

The primary reason why the length of the day is increasing is because of Tidal Friction, which is caused by the moon. The moon is also getting gradually further away from the earth, and will one day leave Earth's orbit. That's not anticipated to happen before the earth becomes uninhabitable due to the sun increasing in intensity and size, but if it was, it would be a very bad thing for life on earth.

For one thing, the orbit of the moon generates tides and other changes which (aside from seasonal factors) create diversity in the ecosystem that certain animals take advantage of, or at least work to the cycles of. Also, it's thought that the Earth would wobble more without the moon holding it in place, so to speak. The earth already wobbles a little on its axis, causing the Sahara to transition between food basket and desert every few tens of thousands of years, but without the moon it's thought that the earth could eventually drift into a 3 dimensional rotation, creating all sorts of havoc on the surface to different biomes.

In short, the moon does a lot to stabilise the earth while introducing cycles that occur more frequently than seasons. It does that however at a price; tidal friction.

So, it's arguable that most planets with an environment stable enough to form intelligent life, life that can determine its relative fortune according to the environment, probably have a moon. That moon (in turn) is gently robbing the planet of angular momentum, assuming a large body of water. In such a case, intelligent life everywhere is probably experiencing longer and longer days.

I'd argue the best solution is a change in the Java Docs; Unfortunately should be changed to Fortunately.

• In the context of the Java Docs, I think "Unfortunately" remains correct. The varying day lengths cause problems for Java programs, and somebody might notice those problems. If the Earth had no intelligent life then it would be much less likely that someone would notice problems in Java programs. – Kamil Drakari Nov 29 '18 at 14:39

## It really bugs them

What you've probably misunderstood is what the term "Java developer" actually denotes. Java developers are a small mammal similar to civet cats in Indonesia both in physical characteristics and how they are used by humans. They remove bugs from and consume carefully managed Java beans, passing out the undigested remainder into the soil to become source-trees, which is how their common appellation is derived.

As a species Java developers are creatures of habit that are extremely easily disturbed, highly sensitive to changes in their (runtime) environment and typically exhibit signs of OCD. They are so dependent on routine that merely adding or subtracting milliseconds to daytime(and by logical extension, working hours) is enough to cause a marked decline in morale and actual output. This is why in captivity you'll often see them living in production frameworks where their view is carefully modeled and controlled.

Adding a second every 1.5 years or so puts their feeble circulatory systems and nearly nonexistent tolerance under immense stress and is predicted to cause a disastrous decline in their population. This is why it is quietly labelled as "unfortunate" in reference material written by the people who handle Java developers

• On the other hand, if you poke a Java Developer, e.g. with a question or a stick, it takes a random amount of time, to get feedback. So their non-existant tolerance seems to be a one way street. – Alexander von Wernherr Nov 29 '18 at 7:52
• @Nelson Javascript developers are an entirely different species from Java developers. Where Java developers deal with beans and have carefully modeled and controlled views, Javascript developers have a functionally very different approach because their environment can change on a monthly basis in a variety of ways, some of which break their carefully constructed prototypes. They also have a huge amount of documents they need to manage and constantly reconstruct because of cascades in management style. – Nzall Nov 29 '18 at 9:15
• I like the creativity, but it makes no sense biologically. If Java developers are so sensitive to day length, how have they evolved and survived in the first place? Why the sudden decline if this is simply a feature of the planet where they live? – user2390246 Nov 29 '18 at 9:38
• @user2390246 Selective breeding, that's how – nullpointer Nov 29 '18 at 10:32
• This answer deserves a bounty. – The Square-Cube Law Nov 29 '18 at 13:52

# It is unfortunate, because we don't get to stare at a giant moon all day

If the planet had a moon, and it had a fixed day length, that would mean that it is already tidally locked to its moon. Our moon is tidally locked to Earth, but the reverse is not true. If Earth were also tidally locked to the moon, then day length would no longer change, and one side of the Earth would always be able to see the moon.

Furthermore, in order for two objects to tidally lock each other before the sun turns into a red giant and expands to consume them, they need to be sort of equal in size. That is why Pluto and Charon are locked to each other, but Earth and the moon are not. So in addition to seeing a moon in the sky all day, you would see a HUGE moon in the sky all day. That would be awesome!

Unfortunately, the other side of the Earth would not see the moon at all. Not everyone gets to be a winner.

• They can just take a plane or look on Instagram. We do that for most things anyways, and most pictures (if not all) of famous tourist locations are actually better than real-life. – Nelson Nov 29 '18 at 8:46
• Unless you go to China, then you could have a tidally locked moon of your own. – AndyD273 Nov 29 '18 at 17:52

It doesn't matter

Throughout the vast, vast, vast majority of human history, we neither cared nor noticed that day length varied in the context you're describing.

We cared that it varied throughout a year (i.e., depending on your latitude, the length of the day was longer in the summer than in the winter), and it could be said that it's unfortunate that at the poles day length tends to vary on the order of months, but again, that appears to be outside the context of your question.

OK, maybe it matters

For the vast, vast, vast majority of humans today we still don't care. Well, we care a little bit. We care enough to implement annoying things like Daylight Savings Time.1 But it should be noted that we were somewhat forced into caring by, among other things, train schedules. Which want to be predictable (even immutable) despite the later advent of busses that can't keep to the schedule to save their proverbial souls in heaven. And the problem with that predictability is the planet's annoying habit of slowing down, perceptually "adding time" to the schedule and apparently requiring all trains to freeze in position somewhere around midnight for just a moment to let the predictable schedules catch up to reality. (Maybe that's why the busses are always late... as a city cost-saving feature they don't freeze at midnight....)2

Which seems to suggest that things in motion tend to stay in motion until acted upon by Man's inability to account for all of the infinite variables that affect the precise measurement of time.3

Rats... apparently it matters

Now, honestly, all of this wouldn't matter at all were it not becoming more apparent that somehow I'm being left behind in the Information Age because my bedside clock cannot talk to my refridgerator to obtain the correct time.4 Despite advancing confidently from sundials and water clocks (which were more than enough for my honorable ancestors) to digital clocks,5 we humans have determined that it isn't enough. I mean, after all, navigators during the Age of Sail could always use a more accurate clock to figure out where they were on the open sea.6 So, apparently, we do need to care about just how long a day is.

Stop babbling and tell me why!

Back in the days when our day started sometime after the sun came up and ended eventually after the sun went down (or after we drank enough mead...) and spent most of our time gathering food and having the ability to actually move when our neighbors got too close to us, it didn't matter at all that the length of a day was predictably unpredictable.

But as we evolved into a species that trained its young in advanced planetary zombie/alien defense (which depends on the mod you're using), allowing for friendships to flourish across oceans, we discovered that it's actually a bit of a trick for everyone to stop doing what they're doing at midnight and hold their breath the requisite time to ensure the next day was really 24 hours long. ...ish. The more we humans must synchronize and coordinate our time, the more important knowing just how long a day is, is.7

So, whether it's ocean navigation, train schedules or the latest incarnation of Half-Life, it's unfortunately true that more than just Java developers have to and do care about the measurement of a day's length.

Because time waits for no teenager8

1Thanks to the movie National Treasure, it is popularly believed in the U.S. that Benjamin Franklin is the father of Daylight Savings Time. What he actually proposed in an anonymous letter to a French newspaper was to use cannon to wake the Parisians at sunrise as a method of saving candles — infering, perhaps with reasonable credulity, that the French really enjoy their nightlife. Whether or not this letter constitutes a rational proposal for re-aligning the calendaring process during the course of a year to better distribute available photons for public use is still being debated.

2It's a really good thing the Earth isn't speeding up because asking a train to freeze is a LOT simpler than asking it to momentarily accelerate to the speed of light to compensate for a shorter day....

3My sincere thanks to Sir Isaac Newton for not climbing out of his grave to slap me with his dislocated left arm for so abusing his otherwise excellent First Law.

4I've had that clock for years and it kept perfectly good time for all that time before my fridge could contact a server farm in India to schedule a time for its own repairs. But now, for some reason, it no longer keeps accurate enough time. Stupid fridge. Time to upgrade my timepiece....

5A 26"x44" version being on sale right now for only \$350 USD! The pretty girl looking coyly at me from the depths of my monitor was the final decision maker for me. Oddly, it's lacking the wireless network connection my refridgerator needs to ensure it keeps the correct time. Apparently the folks at Big Time Clocks aren't Java developers.

6And they didn't apparently care when the sun rose or set (other than as a means of avoiding cannon fire). They cared about noon — because if you don't know exactly when noon be, one beint unawarez of where Tortuga and all da rum be! Aaaargh!

7I've waited my whole life to use a double-is like that... really!

8A reasonable PhD thesis could be written on the number of people each individual in the U.S. depends on during the course of a single day — each doing his or her job in a reasonable period of time. And that requires us to care about the precise length of a day to such a degree that it causes concern among Java developers. Think about the precision we'd need if people had to actually do their jobs to the second! It's enough to make a civet's Java developer's head explode just thinking about it. I loved NullPointer's answer, BTW. I upvoted it and you should, too.

I'm sure you've seen the recent news about the redefinition of the value of the kilogram. Consider the impact this has on every manufacturer that produces measuring equipment: they now have to retool their production lines to use this new definition. Consider the impact this has on every manufacturer that measures things: they have to buy new equipment that uses the new definition, or upgrade old equipment. And that's not even beginning to take into account the systems that have made the assumption that the mass of a KG is the mass of the cylinder stored in France, and the systems that depend on those!

Now consider the impact if the same thing had to happen every one-and-a-half years, because that is essentially what happens with timekeeping systems. As per the same Javadoc:

The actual length of any given day and the amount by which the Earth is slowing are not predictable and can only be determined by measurement.

Because it's impossible to create an algorithm to predict when the Earth's day will extend and by how much, the only way to account for this is to manually modify timekeeping systems to handle each special case. So the system has to say "from 2018-01-08 at 19:48, there are 86400.01 seconds in a day, not 86400.00". Then about 1.5 years later, the system has to have a new condition added that says from that date and time, there are 86400.02 seconds in a day. Repeat ad infinitum.

Modifying software is a tricky business because it's easy to break the current functionality. There are ways and means of alleviating this, but no way to guarantee that a system is 100% correct. This is problematic because millions of systems around the world rely on these timekeeping systems in order to operate; an error introduced by a timekeeping system would therefore cause havoc in those dependant systems.

And then, of course, you have poorly-written software that relies on timekeeping systems always returning the same value. I can guarantee you that probably 90% of all software would break if it asked the underlying timekeeping system for the number of seconds in a day, and received a value other than 86400. Human nature being human nature, the timekeeping system will likely be blamed first as opposed to the incorrect software, which creates more headaches for the people responsible for keeping the timekeeping system correct.

• "Consider the impact this has on every manufacturer that produces measuring equipment" Essentially zero. The national kilogram prototypes will need to be reweighed using a Kibble Balance, and even the manufacturers of the most precise measuring equipment will be good to go. – Martin Bonner supports Monica Nov 29 '18 at 10:12
• I believe the point was, if the redefinition of the kilogram changed it by a really very small amount, imagine what doing that regularly, but not predictably, with a definite drift tendency (not a refinement) would do for your manufacturing world. – Kain0_0 Nov 29 '18 at 23:25

The earth change in day's length is so small we don't have to care about it, except in real time network systems. Since 1972 (46 years ago) we had 27 seconds of change. Almost one every two years. Any pre internet society would not notice it. So, if you are not a developer...

To make this a issue you need to accelerate the pacing a lot. Say... 10 seconds a year. In 6 years the day would get a minute long, and 360 years would increase it one hour. This would trigger big climate changes and be a major concern.

But to justify this change you would need some radical cosmic event, like the planet capture a errant comet as a new moon. And that would cause some other concerns, like extreme tides too.

• You're confusing two things here. Leap seconds are still adding up at a rate of about one per two years. If we'd suddenly change that to 10 seconds per year, in 10 years time it would still be 10 seconds per year. The climate influence would be virtually non-existent. Remember that angular impulse is a conserved quantity. How are you going to loose that much impulse that fast? – MSalters Nov 29 '18 at 11:58

If the change is significant and not-constant (constant would be: in Autumn, it lengthens by X per day, winter by Y and the rest it lengthens again by Z), for example days get constantly longer (in a significant way, like 10 Minutes/year), that would make is way harder for complex life with a biorythm to evolve, since days are completely unstable, and for just two generations later maybe even have double the length etc.

That said, life probably could evolve to that, but humans visiting would suffer in the long term

As days get longer, you have more time for yourself.

To make it easier to understand, imagine we lenghten the day to 28 hours. If you have a 9-to-5 job, you now have 18 hours to eat, sleep, rave and repeat - as opposed to only 16 IRL.

That should be good, right? Well, not for corporations and workaholic bosses who now feel they're getting less value from your labor.

For a 40 hours day, with a 9-to-5 job, they are paying for only 20% of your time, as opposed to 33% in real Earth. A 1% block of your time gets more expensive.

And who publishes software documentation? Companies.

When you lament the lenghtening of the day, you are siding with The Man.