r/ProgrammerHumor • • May 17 '21

Timezone Support

Post image
22.3k Upvotes

460 comments sorted by

1.1k

u/[deleted] May 17 '21

I know this is a joke, but the ISS uses UTC, so the people on Mars might use that for a while.

702

u/Rainmaker526 May 17 '21

Weird to put a semi serious reaction here, but they wouldn't for long. The length of a day on Mars is very different then one on earth. Assuming they'd want to keep 12:00 as the time when the sun is at it's highest point, that would be out of sync almost immediately.

This gives rise to another programming problem; how about a variable number of hours in a day, or a variable number of seconds in an hour? Or a variable length of a second?

445

u/[deleted] May 17 '21

Weird to put a semi serious reaction here, but they wouldn't for long. The length of a day on Mars is very different then one on earth. Assuming they'd want to keep 12:00 as the time when the sun is at it's highest point, that would be out of sync almost immediately.

Eh, that's future us's problem. But they'll figure it out.

Also, maybe Earth-based servers will use Earth time zones. Who knows? Maybe the Mars-based computers will use UTC for communication with Earth.

295

u/ech0_matrix May 17 '21

Maybe the unix clock will rollover before that happens. Eh, that's future us's problem.

171

u/BackmarkerLife May 17 '21

Which everyone will wait until 2035/36 to actually do something about.

151

u/SexyMonad May 17 '21

We call it “job security”.

0

u/[deleted] May 18 '21

[deleted]

15

u/northrupthebandgeek May 18 '21

There's a lot of embedded 32-bit stuff floating around. Hell, I don't think there are any 64-bit processors on Mars at all (unless the Zhurong rover has one; can't find any details on what CPU they used for it).

6

u/Eyeownyew May 18 '21

The entire US banking industry runs on software from the 1960s-1980s 😬 I don't mean one company. The transactions, the ledgers, international wire transfers, all of it. It's one of the reasons that most banks have low quality apps & websites, that tech is a completely different tech stack from their financial processing

→ More replies (3)
→ More replies (5)
→ More replies (2)

97

u/[deleted] May 17 '21 edited May 17 '21

Datetime on Earth is insanely bloated with millenia-old compatibility. For example; leap years, 29 days in February, weeks misaligned with months etc.

If Martian colonists created a new, simpler time system based on seconds, then they can leverage the existing Unix time. Converting between Mars and Earth would just involve Unix time as an intermediate

44

u/[deleted] May 17 '21

Unix time would be the basis regardless of how they did it. Its worked since 1970, why stop now...

Literally just get the day that the systems go online as day 0 Martian calendar and work out the specific issues later.

Unfortunately a Martian Solar Day (Sol) is 24hrs 39mins 35seconds.

So not exactly a nice even conversion from Earth time.

Unfortunately we can't just change the length of a second to make it easier.

It's just that ~86,400s in one day isn't a very compatible transformation with 88,775s in one Martian Sol.

→ More replies (1)
→ More replies (2)

15

u/CodyTrey93 May 17 '21

Once there's people on Mars, shouldn't UTC, change to GTC for coordinated global time?

4

u/Velvet-Thunder_ May 17 '21

They’ll figure it out by rewriting it in Rust

→ More replies (8)

32

u/TabularConferta May 17 '21

I was curious about this so I checked. The length of a day on Mars is 37 minutes longer than Earth.
This does raise interesting questions as to how we use time.

The easiest solution while we remain in the solar system is to keep all time UTC and Earth based. People may choose to live their days my a localised time, but they would still use Earth based as standard.
This would enable a "Universal" system which is compatable with current standards.

People perception of day night and sleep cycles I think it what may determine how people live their lives on Mars and part of this comes down to what form of habits we live in. If we live shift work on Mars, then maintaining Earth time makes sense. If we manage to start growing plant life and need to actually case about where the sun is (rather than using artificial light) then this would lead towards requiring MST (Mars Standard Time). Ultimately it comes down to future humanities use case, but for the foreseeable future, I would reckon UTC will be sufficient.

37

u/[deleted] May 17 '21

More on time stuff, as I'm reading about it for a project. Also disclaimer, I'm no expert, this is just what I've gathered so far.

UTC as we know it is actually derived from TAI, or International Atomic Time (acronym from French translation). International Atomic Time is actually the weighted average of 400 atomic clocks in ~50 labs around the world.

Here's the kicker, atomic clocks are goddamned accurate that the irregular rotation of the Earth is slowly making 'solar time' out of sync with our atomic time. To compensate, staring in 1972, the BIH, or International Time Bureau (thx again French) used to declare leap seconds. This has since been passed to the IERS, or International Earth Rotation and Reference Systems Service. Basically, a rough 6 month notice is given for everyone on UTC to roll their clocks forward or backward a second. So far, they have all been forward, but either is technically possible.

As of writing in May 2021, TAI and UTC are out of sync by 37 seconds.

Rolling over a second at the end of the day has proven to be disruptive in time sensitive applications, though. Some companies, like Google, have a system for adding a 10th of a second incrementally throughout the day of a leap second event to be less disruptive, but it's a problem nonetheless.

Also, there's the issue with UTC being a signed 32 bit integer that will definitely roll over and break shit in 2038 if we don't ALL update our systems to prepare for it, and I'm really confident we'll take care of that without a hitch. Y2k38, here we come. But even then, we'll just move to a 64 bit signed integer, so we're just kicking the can down the road.

That's why I, the 23 year old headass UI developer, recommend going with a 256 bit unsigned integer based on International Atomic Time and scrapping timezones for our timestamps. This both buys us enough seconds to outlast the projected heat-death of the universe, and makes JavaScript developers without a favorite BigNumber library shit themselves in anticipation of such an event. 🙂

17

u/othilious May 17 '21

With regards to UTC being stored in a 32 bit integer; that hasn't been the default in most languages for a long time.

Common databases like MySQL support 64-bit integers and have done so for a long time. Even if your column datatype is defined to be too small, a simple ALTER statement will fix that easily enough.

Modern editions of C++ and modern languages like C# or even things like PHP will also not have any issue with 64-bit timestamps, provided you actually run them as 64-bit applications.

I've worked with a few applications in an in-house ecosystem written in the above languages. One of the requirements we tested against was exactly this issue to an extreme; arbitrary storage of scientific data with timestamps in milliseconds with a floating point precision of 5 decimals. Turns out; not actually that hard if you've kept your environments up-to-date and run 6- bit, which is pretty much everything these days.

So the Y2k38 problem has already been solved today, so if it bites you in the ass ~17 years from now, you don't have anyone to blame but yourself. Or management. Probably management.

→ More replies (3)

9

u/Sese_Mueller May 17 '21

Wait until you hear about the fact that it is impossible to know how many minutes and seconds earth and mars clocks would be out of sync (i.e. earth might be out of sync with mars more than mars with the earth) since light speed can only be measured two ways.

→ More replies (5)
→ More replies (1)

9

u/[deleted] May 17 '21

The solar day is actually 39mins 35seconds longer than on earth.

The value you have seen is the sidereal day, which doesn't account for the apparent movement of the sun over the course of a solar day as the planet moves around its Orbit.

→ More replies (1)

13

u/jua2ja May 17 '21

I think it's a horrible idea to use UTC in mars. Since it takes 3-22 minutes to transmit any message to mars, I think mars civilization would pretty quickly find themselves fairly independent from earth, at least on everything except purchase of resources and trade. As a result people will have their own time system which will likely rely on the sun. I think it is possible for humans to get used to a 24 hour and 37 minute day in terms of sleep schedule, so they will shift to that schedule on mars, and they'll like want their own computers, which they would prefer working with their own schedule. I think that the most practical solution is to have a completely separate time system for mars, and for developers to just support the interactions there, including accounting for factors such as the different distances between mars to earth. Most mars-earth communication will likely be just large uploads and emails anyway, as there aren't any other practical ways to talk to anyone on mars.

9

u/[deleted] May 17 '21

I'm not trying to berate you, just point out something.

Technically a it would be a 24hr 39min 35sec day because the time you and another commenter posted was the sidereal day - which is the time for one complete rotation irrespective of the sun.

A solar day accounts for the movement around the orbit over the period and requires a few extra degrees of rotation to get back to solar noon.

With regards to a separate time system - the second will remain the same.

Unfortunately 86,400s doesn't go into 88,775s very well.

You'd have to come up with some new minute and hour counterpart for it to work.

53 seconds to a Martian minute.

67 marMin to a Martian Hour.

(or the other way round)

25 marHr to a Martian Day.

That's the best I can come up with.

4

u/MacrosInHisSleep May 18 '21

Would it work to define a Martian day as 24h,39m,35s?

Basically have the clocks go to 00:00:00 at 24h,39m,36s.

At least that way, day to day units of time can be consistent, which I think is very important.

We could even define it as 24:40 and remove an hour every ~120 days if we wanted to have less rounding and more frustrated programmers.

Days to a month can be anything really doesn't have to be 12. We can't use their moon for months, because the two moons orbit mars ridiculously faster than our moon (30 hours and 8 hours). If we did want 12 months in a Martian year, then a month would 669 martian days/ 12 = 55.75, meaning 8 months of 56 days and 4 months of 55 days.

I would name the months something different to be less confusing. I would be disappointed if the name of the third month isn't Earch.

→ More replies (3)

3

u/ohkendruid May 17 '21

Time zones could go away on Mars and basically never be missed. We could do the same.on Earth.

Daily time would still be important on Mars, though, if anyone lived there. For local inhabitants, there will be things that happen every day, and it will he important to be able to describe the time it happens.

Hours are not needed for daily time. Seconds and kiloseconds work out pretty well. IIRC, a kilo second is about 16 minutes, and there are about 86 kilo seconds in an earth day. That's no more or less convenient than hours. Note that with hours, people are forever talking about quarter hours anyway. We may as well use that as the more fundamental unit.

Months are not important on Mars. Use weeks or days, depending on the purpose.

Weekdays also seem valuable on Mars. People organize regular events according to a weekly calendar, and they need a way to say things like the bridge game is on Tuesdays at 11:00.

Years seem valuable for discussing holidays and for generally keeping the numbers small. These are probably okay to drift from the astronomical year so long as it's no more than a day a year. It's probably just as convenient in net, though, to have years start midday, at the exact fraction of a day that the astronomical year ends.

→ More replies (8)

2

u/phire May 18 '21

NASA already have to deal with "Mars Time" for their rovers, as they mostly operate during the local daylight.

At times (especially around a new rover landing) they actually shift their mission control teams from local time to "Mars Time" for a few months. Source.

→ More replies (1)

2

u/Kered13 May 18 '21 edited May 18 '21

The Unix epoch would continue to be used as the "universal" measure of time. However Mars would have it's own local clock, probably using at least partly local units like Mars hours and Mars minutes, as well as it's own local calendar.

This isn't as weird as it sounds at first. We're already used to converting between time zones and between 12 hour and 24 hour clocks. Many date-time libraries can also handle non-Gregorian calendars as well (such as Hebrew and Islamic calendars).

→ More replies (1)

2

u/thblckjkr May 18 '21

I'm pretty sure this was in somewhat way solved on the Assimov's books, specifically in the foundation trilogy.

If I remember correctly, there was a universal time that was based on "forgotten knowledge" (earth time), but every solar system/planet had it's own time and timezone.

The interesting bit is how TF is going the relativity affect clocks, and how we are going to program it. I would think that the easiest way is to keep a "standard" clock in the earth, but if there is any anomaly in the spacetime continuum in the earth, or even if there is some disturbance at sending the data, we wouldn't have a reliable way to know. Even if we transmitted everything with light, we are just assuming it has a constant velocity, but we don't actually know... I think, i don't actually know alot of relativity and I'm just making guesses.

So, I think the solution would be to just keep an earth clock and a sepparate one for every planet, and use relative timestamps to the local clocks, not to the other planet.

→ More replies (1)

1

u/mfb- May 18 '21

The teams controlling the Mars rovers are already using sols (Mars days). And they are here on Earth. It's easy to adapt to a slightly longer day, so I would expect people to do that. Mission control can keep using sols just like they do for rovers now.

→ More replies (4)

5

u/McFlyParadox May 18 '21

Weird to put a semi serious reaction here, but they wouldn't for long. The length of a day on Mars is very different then one on earth.

In Kim Stanley Robinson's Mars trilogy, the way they dealed with this is was sticking with the 24hr clock, and then just stopping the clock for 37 minutes every night at midnight - and it's basically 'party time' during that gap every night.

→ More replies (1)

3

u/aquartabla May 18 '21

Don't forget about clock drift due to relativity.

1

u/Guaymaster May 18 '21

On a cosmological scale, it really isn't! The day on Mars last 24 hours, 37 minutes, and 22.7 seconds. In comparison, a "true day" on Earth lasts 23 hours, 56 minutes, and 4.1 seconds.

So yeah the error in Mars should grow faster than the error in Earth, but I think that can just be fixed by adding more leap years to a Martian calendar, which by itself is also roughly twice an Earth year.

1

u/mee8Ti6Eit May 18 '21

A bigger problem is you can't synchronize the time. The motion of the planets will literally cause time to drift. You'd have to come up with a interstellar version of NTP and figure out best practices for handling cross-space time comparisons.

Take the classic example of a person traveling near light speed and coming back to find everyone else aged a lot more than them. In their time, only one Earth day has passed, but for us a hundred days passed.

1

u/lunchpadmcfat May 18 '21

Maybe they’d get it right and ditch the concept of time zones altogether. I can scarcely imagine why we use them here. Does it matter if 1400 is midday or midnight?

1

u/Cyrus_Halcyon May 18 '21

They would likely not sync it with noon though. They would (despite the long signal path) likely remain in the same day cycle as "control" up until you have thousands of what would then be colonials not astronauts.

1

u/fnordfnordfnordfnord May 18 '21

Or a variable length of a second?

I'll kill ya.

1

u/baxtersmalls May 18 '21

Yeah I think this is the most interesting idea - do they use earth time or Mars time? Seems kinda like a square peg in a round hole to only use earth time, it might not serve the purposes they need of actually knowing what the situation is like in their actual life. I imagine they’ll use earth time (what time zone though? Wow.), in combination with a Mars time at least for the first few decades.

1

u/marcosdumay May 18 '21

Well, the ISS day is much more different than the Mars day. That's why they give up and use UTC.

Maybe the days there are not different enough to give up, but I don't think it's impossible that in a few hundred years we have inter-star coordination by UTC.

1

u/TerrorBite May 18 '21

A Mars day (known as a sol) is about 37 minutes longer than an Earth day. By increasing the length of a second on Mars by about 2.4% you could have exactly 24 Mars hours in a sol, but then you have to deal with the issue of having different length hours, minutes and seconds from the rest of humanity (though that may not matter much when they are so far away).

Alternatively, you could keep your hours, minutes and seconds the same length and just stop the clocks at midnight for about 39.5 minutes until the next day starts. In Kim Stanley Robinson's Mars trilogy, this was referred to as the Martian timeslip, and was considered something of a "witching hour", during which the emerging identity of Mars as a separate entity from Earth was celebrated.

You might also want to increase the number of months in the Martian year, say to 24 months, to better fit the human expectation of the length of a month.

1

u/Mtwat May 18 '21

That's ignoring the difficulty of developing reliable signal infrastructure. High bandwidth communications between Mars and earth will not be a easy undertaking. It may be a while before there's a common connection between the Mars net and the Earth net.

1

u/Eyeownyew May 18 '21

These are not very difficult problems to solve actually. With epoch time, we could be in sync between Mars and Earth, and the calendar/date implementation is built on top of those milliseconds. So as long as you can keep those piezoelectric crystals synchronized, you can have planet-agnostic time tracking very easily.

You wouldn't want to change the length of a second, but you could with ease, and it would not help you in any way

1

u/MDCCCLV May 18 '21

Mars being almost 24 hrs honestly seems worse. If it was something crazy long like weeks for the moon you can just ignore it. But Mars has a basically normal earthlings 24 hr day with just a little extra, so people will certainly use it in daily life.

But that extra 37 minutes in the day means it will be completely out of sync with earth time.

1

u/Dojan5 May 18 '21

Assuming they’d want to keep 12:00 as the time when the sun is at it’s highest point, that would be out of sync almost immediately.

Why would they, though? It doesn't even work that way all over Earth. Where I live, the highest point today falls on 12:48.

Going by the sun is irrelevant.

1

u/[deleted] May 18 '21

Since the length of a second is based on the speed of light, and not tied to anything on Earth, it would still make sense to use UTC. The length of a Mars day is just 40 minutes longer than ours, so it would make sense to use 1200 as noon, only if the local clocks used the position of the sun to denote time, and since we don't do that any more even on earth, I see no reason we can't mark 1220 as noon on Mars. I don't see how it would be difficult to translate DateTimes between earth and mars if both had the unix time stamp as an underlying representation.

Unsurprisingly, they already thought about this and made it more complex than I could have ever thought of.

1

u/UntestedMethod May 18 '21

planetary_time = UTC * (planetary time scaling function)

1

u/themoonhowls0308 May 18 '21 edited May 18 '21

Nahhhh one constant in the universe is gonna be the second. Lets just make it different number of hours per day, dont fk with my mental *3600 thx. But to be honest, mars has a similar time of day as earth (1d 0h 37m)

Tho one thing to think about here, mars has 2 moons, which one should we follow? Phobos has a period of 7.66h, Deimos has a period of 30.35h

1

u/Kurayamino May 18 '21

This gives rise to another programming problem; how about a variable number of hours in a day, or a variable number of seconds in an hour? Or a variable length of a second?

Not as much of one as you think. Unix epoch is just counting seconds. You translate that number of seconds into whatever the time format you want. That number of seconds will be the same number of seconds on Mars as it is on Earth.

Time zones suck to support because they're set by government and change arbitrarily during the year and vary based on things that the computer doesn't necessarily know.

But if all of Mars is on one clock then people only need to figure out how to translate unix epoch to Mars time once.

1

u/[deleted] May 18 '21

1 mississippi, 2 missippi, 3 sippi

1

u/[deleted] May 18 '21

A whole different problem is how do you deal with delays? The reason timezones are necessary is because of near instant communication. That is not possible with mars. If a lifestream starts at 8pm utc will it then start 8:08pm utc on mars at one point of the year and 8:16pm at another point in time. Time communication is gonna be interesting.

Maybe for mars we can solve this by saying what planet the lifestream is started on, but what about if we get stations in orbit around venus, jupiter saturn etc. Its gonna be interesting how time will work in the coming years when we cant base it off of earths rotation around itself and the sun entirely.

1

u/BlueWoff May 18 '21

This gives rise to another programming problem; how about a variable number of hours in a day, or a variable number of seconds in an hour? Or a variable length of a second?

There already are multiple definitions of "day". Regarding seconds in hour no way it will be a thing since the second is the basics on which the whole international system of measurements is based.

1

u/SignificanceThat6552 May 18 '21

The time will probably be relative to earth and will be compared to earth. Instead of UTC we might have a centralised solar time but idk

1

u/Potential-Treat1740 May 18 '21

the term or a day is created by humanity, seconds, hours, meters too so they just have to be more imaginative...

1

u/MeagoDK May 17 '21

They just shouldn't. What time it is shouldn't have anything to do with the sun imo

1

u/Freonr2 May 18 '21

This is really a good opportunity to just invent a new unit of measure and leave the ugliness to a conversion factor and program to go back to Earth time. No fractional Earth hours per Martian day which is just confusing. Dump the weird factors of 24 and 60 to move to decimals.

I propose the "mour" defined as 1/10th a Martian day, or ~2.46167 Earth hours, and reported with decimals over 1/60th fractional units. No time zones on Mars, they're unnecessary, just put a sign up at each base that states MUTC time when the sun is at its highest point.

All comms and computer programs use Earth UTC internally (again, simple one-way transposition to MUTC for display purposes) and assuming the speed of light is the same in both directions, which it may not be.

4

u/McFlyParadox May 18 '21

Dump the weird factors of 24 and 60 to move to decimals.

Those are around because they work well with the unit circle and align well with our resting heartbeat. You wouldn't really be able to ever break time up into even numbers across all 'levels' if you tried to go to a base-10 system.

→ More replies (2)

2

u/Kered13 May 18 '21

Dump the weird factors of 24 and 60 to move to decimals.

Fuck no, base 10 is fucking garbage. 24 and 60 are far better numbers to construct a measurement systems off of. That's why decimal time has never caught on, despite multiple proposals. The problem is the base 10 metric system. If we're going to change anything, that should be converted to base 12 or something reasonable instead.

1

u/cold_lights May 18 '21

Timezones are an antiquated idea and serve no purpose.

4

u/Kered13 May 18 '21

They solve the incredibly practical problem of knowing what time of day it is in other parts of the world. Good luck figuring out what business hours are in another part of the world without timezones. It's not impossible, but the solutions all amount to a much clunkier version of timezones.

25

u/[deleted] May 17 '21

[removed] — view removed comment

4

u/Dane1414 May 18 '21

Yes but gravity is lower on Mars which affects the passage of time, so the cesium atom on Mars will oscillate more often than the cesium atom on Earth. So, when a second passes on Earth, slightly more than one second passes on Mars.

→ More replies (4)

24

u/lisa_lionheart May 17 '21

Universal time: old, boring

Cosmic time: inspirational, cool

7

u/FirstRyder May 18 '21

The human circadian rhythm 'naturally' runs a bit longer than 24 hours, and syncs to the natural light day/night cycle.

On the ISS that cycle is 90 minutes, so you can't have a 'natural' cycle. You'll have to fake one to have a healthy sleep cycle, and you might as well pick a time zone on earth to fake. And since you're in the "international" space station, UTC makes sense.

But on mars the cycle is 24.5 hours, which is 'valid', biologically speaking. Maybe you can still fake a 24-hour cycle (and keep using UTC), but if you're significantly exposed to natural light, you're going to run into problems, as if DST happened every second day.

Now, maybe the very first people to live on mars will be living in tunnels or something. In which case yeah, they'll keep UTC. But as soon as a significant number of people live or work outside, or even in a building with windows... you're going to get your first 24.5 hour time zone. A time zone where no month has a 31st day. It'll be ugly to convert. And then we'll probably quickly move to having a full set of Martian time zones as well just to get it over with.

5

u/sharlos May 18 '21

Martians will definitely not use UTC, even if they live in tunnels they'll still probably use solar panels so they'll want to do their most power intensive activities during the day.

→ More replies (1)

2

u/[deleted] May 18 '21

This thread is amazing. Thinking about time and discrepancies between the Earth and Mars, there is the further complication caused the difference in rotation speed around the Sun. A year on Mars is 687 Earth days which means that relativity will need to be factored in to all communications with Mars. The difference in distance between our 2 planets is never the same. Mars orbit is also much more elliptical than ours and the speed and shape of the Mars orbit is greatly influenced by Jupiters gravitational pull. All of this needs to be taken into account for communication times. Not to mention the periods of Mars Opposition which happen every 2 years when the Sun is directly between us and Mars, which will make comms basically impossible and during which time cloks will need to maintain some form of synchronization between the 2 planets.

1

u/RecursiveSandwich May 18 '21

Universal Coordinated Time is seemingly more and more like a bad name. Maybe Earth Coordinated Time?

1

u/DowntownLizard May 18 '21

Yeah until they want it to match their solar cycle

1

u/[deleted] May 18 '21

the ISS uses UTC because the IIS doesn't spin like the Earth, so time is arbitrary. Mars spins so time there would have to match the Martian day/night cycle

1

u/HotRodLincoln May 18 '21

The bigger issue is going to be the language drift as the population grows until we need an English to Space English translator.

1

u/LogicalGamer123 May 18 '21

I read ISS as ISIS

1

u/NewFuturist May 18 '21

Yeah but what about time dilation?

1

u/augugusto May 18 '21

The solution to timezones is to use Unix epoch time. The amount of seconds since 1/1/1970 00:00 UTC. Since Mars shouldn't change the length. Of a second (or minutes Or hours for that matter) the translation can be done really easy. However there might be problems considering the speed of light, since the time it takes light to travel one way varies between 3 and 22 minutes. And it brings some very wierd and funny space-time complications

1

u/5319767819 May 18 '21

Actually, I think Mars will not get a Earth Time Zone, but a whole new Calendar System

172

u/bistr-o-math May 17 '21

That wouldn’t be a set of new time zones, that would be a single new calendar type.

118

u/Rapierian May 17 '21

Fun fact...current IP rules and the speed of light would allow routing to the moon, but not to Mars...

37

u/YM_Industries May 18 '21

I think laser beams to Mars are still orders-of-magnitude faster than IPoAC.

19

u/Anunay03 May 18 '21

But you can't beat IPoACs throughput.

11

u/YM_Industries May 18 '21

I don't think IPoAC would have very good throughout to Mars though.

8

u/atomicwrites May 18 '21

It would work with IPoACoRC.

3

u/[deleted] May 18 '21

How many avian carriers fit on a starship?

14

u/RyokuH May 18 '21

I'm not aware of how the two interact, is there a eli5 for this?

10

u/Perhyte May 18 '21

I'm assuming it would hit some sort of timeout due to the light-speed delay: even at closest approach Mars is already about 3 light minutes away, the rest of the time a signal would take even longer than that.

6

u/brimston3- May 18 '21

Spot on. TCP connection timeout is typically around 120 seconds, and retransmits start as early as 1 sec (200ms on some implementations). UDP is application protocol dependent, but generally the tolerances are tighter rather than looser and things are considered lost well before 5 seconds have passed, much less 3 minutes.

77

u/other_usernames_gone May 17 '21

It's even worse, you'll need to account for relativistic effects. Because of the difference in gravity and orbital speed time literally runs at a different pace to on earth.

6

u/Kered13 May 18 '21

The effects of relativity between Earth and Mars are negligible. Only extremely sensitive equipment like GPS will need to account for them (GPS already has to account for this on Earth).

2

u/awohl_nation May 18 '21

fuck that, im using a library

308

u/ocket8888 May 17 '21 edited May 18 '21

Actually, this is an opportunity to correct time mistakes we made on Earth.

What time is it?

It's 13:05.

But then it's dark on my side of the planet at noon!

That's because you live on a side of the planet where it's dark at noon.

But some times of the year farmers might have to get up at a different time to work in the same duration of sunlight!

Then they should get up at a different time.

I want my divisions of a year to have randomly-allotted numbers of sidereal days!

No.

I think we should be imprecise about the length of a sidereal day and full year, then we tack on some extra seconds and/or days every few years!

No.

159

u/FromWayDownUnder May 17 '21

While we're at it can we make a uniform currency, language, date format, and units of measurement as well?

61

u/schmidlidev May 17 '21

15

u/RhysieB27 May 17 '21

There it is. Knew I had to do my due diligence in searching the comments before posting this myself.

105

u/JochCool May 17 '21

All of those exist, they're just not all very uniform.

85

u/MeagoDK May 17 '21

The last 2 are. USA and some other countries just aren't using it for reasons

58

u/JochCool May 17 '21

I don't see many people using the superior ISO 8601 where I live.

23

u/frafdo11 May 17 '21

It’s important to use planet specific measurement for no reason other than to annoy future generations for fun. It works like this: 1 meter on Earth is proportional to its radius (not actually but if we make it so, we can truly troll future Martian babies with our Earth based meters), and 1 meter on Mars is thus smaller

1

u/bistr-o-math May 18 '21

A uniform Linux distribution?

23

u/[deleted] May 17 '21

Reject imperial time, return to metric.

1

u/Kered13 May 18 '21

Not having timezones would be horrible in practice.

1

u/7eggert May 18 '21

Problem: Earth itself is imprecise about the length of a sidereal day. We would need to adjust the length of a second each month.

1

u/[deleted] May 18 '21

Except the simple and crucial question "what's today's date" becomes unanswerable.

48

u/fofosfederation May 17 '21

Another reason to abandon time zones and adopt universal time.

39

u/Capetoider May 17 '21

and if everyone were to use GMT time and DD/MM/YYYY (or YYYY/MM/DD) we would achieve world peace.

seriously... US bullshit rejecting metric systems the whole world use cause half of our problems.

34

u/Bene847 May 17 '21

ISO 8601 for life

4

u/tjdavids May 17 '21

What possible reason would someone use ddmmyyyy?

15

u/RhysieB27 May 17 '21

This is a joke, right? Please whoooosh me.

Of course yyyy-MM-dd is far superior to both but everyone other than the US uses dd-MM-yyyy.

2

u/takatori May 18 '21

Where I live dates are all yyyymmdd

→ More replies (1)

3

u/L1n9y May 17 '21

It's numeric order and everywhere outside America, where it's completely random, uses it.

59

u/LightningOW May 17 '21

62

u/RepostSleuthBot May 17 '21

Looks like a repost. I've seen this image 2 times.

First Seen Here on 2018-02-09 100.0% match. Last Seen Here on 2019-11-05 100.0% match

I'm not perfect, but you can help. Report [ False Positive ]

View Search On repostsleuth.com


Scope: Reddit | Meme Filter: True | Target: 96% | Check Title: False | Max Age: Unlimited | Searched Images: 223,055,724 | Search Time: 1.2471s

34

u/[deleted] May 17 '21

Good bot

9

u/Bastian_5123 May 18 '21 edited May 18 '21

I think all programmers everywhere should just band together and force the change to UTC. Just scrap all existing support and leave a document with a list of all known timezones and their complexities for anyone foolish enough to try to pick support back up

1

u/Kered13 May 18 '21

This would only make working with time much, much harder.

1

u/Bastian_5123 May 18 '21

How so? It might be difficult for a few weeks to months, but considering 90% of time keeping is done digitally now-a-days anyways, we'd just adjust and wake up at 1300 UTC or whatever normal morning time is locally

2

u/Kered13 May 18 '21

Scheduling anything across would-be time zones becomes much more difficult because there is no easy way to find out what typical business hours are or any similar information. The solution would be to create unofficial databases of local times for every major city, but that s just a badly implemented version of time zones.

→ More replies (7)

8

u/[deleted] May 18 '21

2721-05-17 -- Patch Notes:
Galactic Universal Standard Time (GUST) has now been implemented system wide.

Going forward, all intra-planet and inter-planet communications will now utilize the new GUST stamps.

Please note: all future inter-Solar and extra-Solar communications must include both GUST and Solar-Standard timestamps for all communications and data packages.

For easy conversion between Local Standard Time, Solar-Standard, and GUST, Please use our Space-Time Calculator-Tool available at NASAUSAGALAXY.thisisajoke.net, provided free of charge.

Thank you, and please remember to manually change your clocks this evening at midnight (GUST).

12

u/alexanderhameowlton May 17 '21

Image Transcription: Twitter


I Am Devloper, @iamdevloper

Elon Musk: I'm putting people on Mars!

Developers: Fantastic, more timezones to support.


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

6

u/RedHellion11 May 17 '21 edited May 17 '21

Not only that, Mars has a different rotational velocity than Earth so any Mars-Earth time zone relationship (+/- X hours) would be constantly changing as the days are different lengths.

Honestly, as soon as we start colonizing things off Earth we would either need to:
(1) switch to a single "time zone" like Universal Standard Time (UST) based on some accepted standard measurement (e.g. base it on Earth UTC, and the current calendar) and some kind of source of truth (like an atomic clock) is kept on each ship/colony/etc assuming we don't have FTL communications to constantly update from whatever the internet analogue is at that point (the ISS already kind of does this, they just use UTC);
(2) switch to PST (Planetary Standard Time) where each planet / solar body has its own "time zone", and there's either some conversion lookup on the internet analogue or we don't have FTL comms so "time zones" are meaningless anyway when messages take days/months/years to reach their destinations (and there is some extra time tacked on to each planet's day known as "comp" or something similar to make all the days be the same length);
or (3) we completely scrap our existing calendar weirdness based on Earth (leap years etc) and then go with either (1) or (2).

7

u/Sese_Mueller May 17 '21

Wait until you learn that earth might be more out of sync with mars than mars with earth.

1

u/takatori May 18 '21

NASA and JPL have already solved this problem for timekeeping on their Mars rovers. Sols are tracked as Mars local time from 00:00 to 24:37.

5

u/[deleted] May 17 '21

Ughhhh another router guard

5

u/SandMan3914 May 18 '21

Came to comments looking for jokes and left with a decent understanding of how to manage time zones between two planets

4

u/Programmer_007 May 17 '21

datetime.marstime

7

u/mattstorm360 May 17 '21

You are upset about the time zones? What about the time delay?

3

u/hego555 May 18 '21

Or time dilation

2

u/Qris_ May 17 '21

Also, the time delay changes constantly

3

u/[deleted] May 17 '21

Fuck, I haven't consider that

3

u/[deleted] May 18 '21

As long as they don't use the américain date format, I'm okay with that

2

u/Ooze3d May 17 '21

I spent the last three days trying to get my Angular app to display and compare stored dates correctly. This one hit too close to home.

2

u/jakethedumbmistake May 17 '21

I mean they even have "Customer Support"

2

u/zerocnc May 18 '21

Great, now I have to compensate for General Relativity...

2

u/pezzi-ph May 18 '21

tom scott having a nervous breakdown

2

u/Playing_One_Handed May 18 '21

I'll never understand why the entire world didn't just use 1 timezone.

Just open and close stuff when it works for you where you are.

2

u/[deleted] May 18 '21

Because then you'd have to take into account that 9 am is morning in some places and the middle of the night in others. It would really mess with your head when traveling.

→ More replies (4)

1

u/[deleted] May 18 '21

I remember reading that China has only 1 timezone, so it's definitely doable to have the same time zone on a large scale. I do wonder how they go about it, to make it work. It is a little confusing to me to contemplate it, having grown up with them my entire life. Knowing people in different states (in the US) on slightly different timezones.

2

u/whiznat May 18 '21

It’s cool. Just ask the Perseverance team what they did. It’s probably already on stack exchange.

2

u/TinyTim711 May 18 '21

I think determining the Mars calendar is a more interesting problem.

What year is it on Mars right now? Should the year be 0 when we land on Mars, or should we sync the years when we land and let the year fall out of sync over time? Or should we calculate how many years have passed on Mars in the last 2021 years?

Will they have months? How long would the months be, and would they be named the same or differently from Earth's months?

3

u/TigreDemon May 17 '21

Post is so old you could create a timezone for it

3

u/RepostSleuthBot May 18 '21

Looks like a repost. I've seen this image 2 times.

First Seen Here on 2018-02-09 100.0% match. Last Seen Here on 2019-11-05 100.0% match

Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]

View Search On repostsleuth.com


Scope: Reddit | Meme Filter: True | Target: 96% | Check Title: False | Max Age: Unlimited | Searched Images: 223,080,487 | Search Time: 1.68444s

1

u/arbitrageME May 17 '21

Not just that, but CHANGING time zones. the Ares sol is 24 hours and 30 minutes. So every day, the time zone changes half an hour

1

u/paradigmx May 17 '21

The entire datetime system would have to be rebuilt to account for that, the Martian day is 24 hours and around 40 minutes and a year is 668 days. You couldn't simply give it a new time zone.

1

u/CloneAssassin May 17 '21

Oh Jesus adjusting to time zones with 29 hour days

1

u/CancerousGrim May 17 '21

Ngl that's going to be a disaster Imagine every website needing to put another option if you're from earth or mars

1

u/ToranMallow May 17 '21

Awesome. A timezone where a day is 37 minutes longer than on Earth. I don't see that causing any bugs.

1

u/D-VO May 17 '21

https://www.kimstanleyrobinson.info/content/martian-calendar

I figured we would use this method if we ever got that far.

1

u/[deleted] May 18 '21

New calendar, too.

Hopefully, this time, the "months" will be based on some sensible subdivision of a solar year and not the loony bin nutjobery of deciding them based on religion or mythology. The calendar on earth is trash.

1

u/metcalsr May 18 '21

I would go, but I'm just worried about Amazon delivery times.

1

u/schmandis May 18 '21

Time zones... does Mars Center Mars Fixed (MCMF) exist yet?

1

u/NightwolfDeveloper May 18 '21

Works the same on Mars as on Earth, you just need to the approximate planet radius.

1

u/xdMatthewbx May 18 '21

oh god please let them just go off of GMT or some set timezone for the whole planet or it's gonna be a fucking nightmare

think about it: days are longer on mars. any timezone set up that isn't just set planet wide will be hell to manage

1

u/jakethedumbmistake May 18 '21

Bet he was a bad idea…. Hey has anyone heard of Azir Support! It’s definitely not the same game

/s

1

u/LegendOfDylan May 18 '21

Hot singles in your area!

1

u/[deleted] May 18 '21

That’s what you get for doing web development

1

u/Xelopheris May 18 '21

The big problem is that calendars suddenly need to support a variable number of seconds per day. Timezones are completely f'd.

1

u/tacofart1234 May 18 '21

Just had a production bug because of timezones. Nothing like the middle ware sending a gmt timezone indicator but it's actually Pacific.

1

u/ZippZappZippty May 18 '21

Spirit and Emotional Support Animal

1

u/civ_iv_fan May 18 '21

Hey, if it weren’t for timezones, backend developers would have nothing to do. TO MARS!!!

1

u/[deleted] May 18 '21

Lmao! I literally had a timezone issue I was troubleshooting last week!

1

u/[deleted] May 18 '21

You’re acting as if you all won’t just use someone else’s work to take care of this.

1

u/RoscoMan1 May 18 '21

I worked Apple Support for two years

1

u/Schiffy94 May 18 '21

What if an apple just has twenty four really small timezones

1

u/Jsuke06 May 18 '21

I’m taking an sql class and setting tables with different time zone seems kinda difficult

1

u/ReallyBigPPUsername May 18 '21

Code in UTC, display local.

1

u/Chairboy May 18 '21

For anyone interested, there's mars-date-utils, a library for working with time on Mars:

https://www.npmjs.com/package/mars-date-utils

It has longitude methods as well as basic time conversions.

1

u/Bastian_5123 May 18 '21

Yeah, but I think if everyone just dropped support for anything besides UTC and tried to scrub the records of how to support time zones as best we can, within a few years nobody would even try to bring timezones back. In the meantime, the lack of documentation would force anyone who tried it to start from scratch, and within a month of that, give up. Just leave a document online listing all of the different timezones and their intricacies and then a counter for the number of man hours wasted on this BS, and it should prevent most sane folk (sane for programmers even) from even attempting it.

1

u/BabyRage1908 May 18 '21

Which is one of the reasons why most of us use UTC

1

u/klapaucius1433 May 18 '21

As a astronomy nerd i have bigger challenge - mercury. Mars is almost earthlike in time measurement. Mercury is nowhere close.

1

u/ShiddyFardyPardy May 18 '21

Don't act like there's no package or library for almost every single language.

1

u/TheUndeadBowman May 18 '21

If they start writing right to left we're gonna lose it

1

u/SauravKumaR301 May 18 '21

Is there a way that we avoid timezones! Like same time for all...

1

u/[deleted] May 18 '21

The ping on Mars will be better than it is where I live

1

u/lord_darksol May 18 '21

Dude I wasn't even thinking about that, that's is gonna suck.

1

u/scaylos1 May 18 '21

Everyone uses epoch now.

1

u/slower-is-faster May 18 '21

He/she who gets to draw the prime meridian through their habitat in Mars wins

1

u/[deleted] May 18 '21

I have no fucking clue where to even start.

But, as a CTO, my move would be to not support Mars for the time being.

1

u/killerrin May 18 '21

But seriously, I don't envy the poor bastards who have to figure out that problem. Time will be an absolute bitch to figure out once we go multi-planetary.

Maybe we just switch to Metric time instead

1

u/[deleted] May 18 '21

Just one?

1

u/jdylanstewart May 18 '21

I am a developer on the Mars rover missions. Can confirm, time conversion between Mars and earth is a bitch and a half.

1

u/[deleted] May 18 '21

The pain is real though 😭and if you are using JavaScript god save y’all 🙏

1

u/YouIsTheQuestion May 18 '21

npm install mars_time

1

u/Kered13 May 18 '21

It will actually be quite easy to support if you're using date-time libraries like you should be. Store all absolute time points in a universal format, like Unix timestamps. Convert them to local time to display. If you need to convert between local times, you do it by going through Unix time. Mars will have it's own clock, calendar, and timezones, but these are all features that existing date-time libraries already support, so it's just a matter of adding new local formats to the existing libraries and using the library like you always have.

1

u/bistr-o-math May 18 '21

Time zones? Tststs. We send float numbers to Mars!

1

u/MontagoDK May 18 '21

EVERY satellite has its own timezone..

1

u/whatup_pips May 18 '21

This is getting out of hand. Now we need Datezones????

1

u/locri May 18 '21

Remember guys it's GMT/UTC everywhere all the time right up until the user wants to see numbers on a screen.

1

u/ignoringusernames May 18 '21

Wonder what the severity of the bugs would be, maybe all Sev-1

1

u/Kyyken May 18 '21

oh god i never thought of that elon take your time please

1

u/Pawix82 May 18 '21

Imagine how many developers would maka a suicide. BRUH.

1

u/OpZcT May 18 '21

Good luck planning a happy hour!

1

u/anonRexus May 18 '21

I should start writing a library for that. Just to have a headstart. As soon as it's the default library for Mars time I will make it proprietary and start making a lots of Mars-Peso. *evil laughter *

1

u/7eggert May 18 '21

The real failure is "to support time zones" by doing it yourself instead of using the system's functions and thereby really supporting time zones.

1

u/kjutvela May 18 '21

old but gold

1

u/CripMan97 May 18 '21

Follow the sun support 🤯

1

u/[deleted] May 18 '21

time is bloat, I don't support timezones

1

u/Th3DarkMoon May 18 '21

Wait!?! The internet will be so slow we'll have to use new technologi to get it there fast enough, potentially a new protocol?!?

1

u/efronberlian May 18 '21

Time to import Einstein's theory of relativity to the time library