r/ProgrammerHumor • • Feb 09 '18

Timezone Support

Post image
31.3k Upvotes

532 comments sorted by

View all comments

2.6k

u/[deleted] Feb 09 '18

A mean Martian solar day, or "sol", is 24 hours, 39 minutes, and 35.244 seconds.

The length of time for Mars to complete one orbit around the Sun is [...] about 686.98 Earth solar days, or 668.5991 sols.

Imagine how actually terrifying it would be to properly implement and support this and keep it in tune.

36

u/cheese-power Feb 09 '18

Do they have Martian leap years too?

66

u/odsquad64 VB6-4-lyfe Feb 09 '18

46

u/LtDan92 Feb 09 '18

Fuck everything about that.

35

u/odsquad64 VB6-4-lyfe Feb 09 '18

In 1998 they changed it so that years divisible by 100 aren't leap years, but years divisible by 500 are leap years. Then in 2006 after the realized the Mars year would slowly be getting longer, they changed it again to use different formulas for different ranges of years (see below) so that they would only lose 1 sol in 12,000 Martian years.

Range of yearsFormula
0–2000(Y − 1)2 + Y10 − Y100 + Y1000
2001–4800(Y − 1)2 + Y10 − Y150
4801–6800(Y − 1)2 + Y10 − Y200
6801–8400(Y − 1)2 + Y10 − Y300
8401–10000(Y − 1)2 + Y10 − Y600

28

u/LtDan92 Feb 09 '18

Mars is dumb. Let's just give up on Mars. I'm cool with that.

71

u/achilleasa Feb 09 '18

"In the end we decided not to colonize Mars, despite having the technology to do so, because the timezone support would be too complicated" -Elon Musk, 2020

14

u/Colopty Feb 09 '18

It was more like time travelling time zone library developers were sending him hatemail and he figured to call it quits before they started sending assassins.

3

u/artanis00 Feb 10 '18

Writing Prompt: Alien civilization, prohibited from interacting meaningfully with pre-interplanetary societies, is running a betting pool on when we will colonize Mars.

"In the end we decided not to colonize Mars, despite having the technology to do so, because the timezone support would be too complicated" -Elon Musk, 2020

Someone had placed a bet on "fails to reach interplanetary status due to difficulty integrating celestial bodies into existing date/time systems."

16

u/[deleted] Feb 09 '18

That calendar is horrifying. Moving to Mars should be a chance to abolish the historical baggage of our calendar, not to invent an even more complicated system, such as e.g. 24 new month names... For instance, I'd rather move to something more similar to e.g. the Korean calendar, where january is literally just translated as "first moon", etc.

19

u/odsquad64 VB6-4-lyfe Feb 09 '18

A lunar calendar based on Mars's moons would be even more of a headache.

13

u/rooktakesqueen Feb 09 '18

Especially given that Phobos will eventually fall out of the sky and Deimos will eventually escape.

3

u/[deleted] Feb 09 '18

[removed] — view removed comment

4

u/Kirk_Kerman Feb 09 '18

The moon is going to gradually slide out until it reaches a point of tidal equilibrium, then it will stay there.

3

u/rooktakesqueen Feb 09 '18

I mean, the Moon will float away in billions of years, and Mars's moons will have their fates sealed in millions. But ... both probably timescales we're not worried about yet.

6

u/Killer_Tomato Feb 09 '18

Each full moon is a new month meaning Mars will be twice as unproductive as earth.

10

u/[deleted] Feb 09 '18

I have no idea how you think that will help anything

→ More replies (4)