r/ProgrammerHumor • • Feb 09 '18

Timezone Support

Post image
31.3k Upvotes

532 comments sorted by

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
→ More replies (4)
→ More replies (12)

4

u/[deleted] Feb 09 '18

Probably.

→ More replies (1)

347

u/[deleted] Feb 09 '18

85

u/sturmy81 Feb 09 '18

39

u/alexbuzzbee Feb 09 '18

Everyone use ISO 8601. Anyone in violation will be subjected to dates in Roman numerals.

44

u/InVultusSolis Feb 09 '18

Everyone use ISO 8601

How we (programmers) feel about this: https://media.giphy.com/media/3o6ZsSEhYdsQOKZnAQ/giphy.gif

How pretty much everyone else feels about this: https://xkcd.com/927/

→ More replies (10)
→ More replies (2)

39

u/teetaps Feb 09 '18

Is there any topic that doesn't have an XKCD?

14

u/[deleted] Feb 09 '18

Oddly "Is there any topic that doesn't have an XKCD?" is a topic that doesn't seem to have a directly relevant XKCD, despite recursion being a common theme.

→ More replies (2)
→ More replies (4)

40

u/LvS Feb 09 '18

Shouldn't it close for 39 minutes?
Did I just find a math error in an XKCD or is /u/katembers wrong?

I think XKCD is wrong because it uses the time for one rotation around itself (called Sidereal day), but because it also rotates around the sun, the angle towards the sun changes a little every day and that's the extra 2 minutes (called Solar day). Wikipedia has a whole article about this.

TL;DR: XKCD is wrong!

18

u/[deleted] Feb 09 '18

Yep, it's wrong in that respect. That's mentioned in its Explain XKCD article also.

10

u/WikiTextBot Feb 09 '18

Sidereal time

Sidereal time is a timekeeping system that astronomers use to locate celestial objects. Using sidereal time it is possible to easily point a telescope to the proper coordinates in the night sky. Briefly, sidereal time is a "time scale that is based on Earth's rate of rotation measured relative to the fixed stars" rather than the Sun.

From a given observation point, a star found at one location in the sky will be found at the same location on another night at the same sidereal time.


Solar time

Solar time is a calculation of the passage of time based on the position of the Sun in the sky. The fundamental unit of solar time is the day. Two types of solar time are apparent solar time (sundial time) and mean solar time (clock time).


Timekeeping on Mars

Various schemes have been used or proposed for timekeeping on the planet Mars independently of Earth time and calendars.

Mars has an axial tilt and a rotation period similar to those of Earth. Thus it experiences seasons of spring, summer, autumn and winter much like Earth, and its day is about the same length. Its year is almost twice as long as Earth's, and its orbital eccentricity is considerably larger, which means among other things that the lengths of various Martian seasons differ considerably, and sundial time can diverge from clock time more than on Earth.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source | ^Donate ] Downvote to remove | v0.28

4

u/FUCKING_HATE_REDDIT Feb 09 '18

Maybe 7-Eleven uses sidereal days too.

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

27

u/SuspiciouslyElven Feb 09 '18

Since most human structures will isolate colonists from both seasons and day/night cycles, they could probably make do with Earth time and pay lip service to Martian years

Although this assumes reactors are the easier solution to energy and not solar panels (Colonists already have to be shielded from space radiation, so they'd already be pretty well shielded from non recyclable waste. Excluding the production and mining of ore, nuclear has few drawbacks and room to expand easily.) in which case I guess we pick a date and count the seconds since then for synchronization.

Unix Epoch will be our future BC and AD.

9

u/piyoucaneat Feb 09 '18

BCE, CE, and UE are the new standards.

→ More replies (2)

47

u/svendub Feb 09 '18

Wouldn't it be the same as supporting another calendar? I think Java's Calendar class for example already supports non Gregorian calendars. If a method of comparison has been established it should be relatively simple to actually implement. Developers can then simply use those libraries.

35

u/mirhagk Feb 09 '18

It should, and developers should never ever write their own time calculation logic.

However time just looks to be easy so many developers don't bother and just use time in seconds or something equivalent.

I've seen totalSeconds += 86400 too many times, and that isn't even right on earth.

7

u/JeffLeafFan Feb 09 '18

Hmm. Novice developer here and I’ve never really worked with time. Can you please explain more so I don’t make that mistake in the future?

30

u/mirhagk Feb 09 '18

In this case the issue is daylight savings time days (only 23 hours in a day) and things like leap seconds.

In general there are SOO many mistakes that could be made. Don't assume anything about time, just use a library. If you want to add a day and you aren't using a method called AddDay then you're doing it wrong.

But here's a great video explaining some of the many problems

→ More replies (10)
→ More replies (2)
→ More replies (14)

16

u/gunnar_svg Feb 09 '18

It's already hard enough with just one planet. Imagine two planets, with different nations, each with different understandings of "time zones." ;-)

→ More replies (2)

53

u/ILikeLenexa Feb 09 '18

Maybe we can have just one unified martian time zone though? or 25? None of this special 'Arizona switches time zones' stuff.

83

u/dickdemodickmarcinko Feb 09 '18

Hey technically arizona is the only state that DOESNT change time zones. DST sucks

19

u/digisax Feb 09 '18

DST is the only time New England is even close to properly placed. Once we switch to Atlantic we can talk about getting rid of DST.

→ More replies (1)

11

u/carlson_001 Feb 09 '18

Speak brother!

9

u/Regist33l3 Feb 09 '18

Fun fact. SK in Canada is the only province that doesn't as well.

7

u/Rebelgecko Feb 09 '18

Some parts of Arizona do DST, which just makes things more confusing

12

u/dickdemodickmarcinko Feb 09 '18

Yeah theres a reservation that has dst. And entirely contained inside that reservation is a different reservation that doesn't have dst. But most az people are nondst.

Edit: oh yeah and contained inside that inner reservation exists another reservation that uses dst

Edit2: heres a map https://c.tadst.com/gfx/750x500/tz-map-arizona-2048x1365.png?1

→ More replies (1)
→ More replies (4)

11

u/zulu-bunsen Feb 09 '18

If China gets there first, maybe.

→ More replies (1)

12

u/mrt-e Feb 09 '18

Relativistic time zone

10

u/bigrubberduck Feb 09 '18 edited Feb 09 '18

IronicallyIncidentally, the first few months of Curiosity's life, the JPL team was working on Mars time and not Earth time. There are some good stories out there about how much of a PITA it was for them. https://www.huffingtonpost.com/2012/11/10/curiosity-team-earth-time-martian-sol_n_2101983.html

6

u/myrrlyn Feb 09 '18

That's not ironic; that's SOP for supporting new missions

I spent Q4 last year on a day 23 hours long instead of 24, which suuuuucked

→ More replies (1)

8

u/[deleted] Feb 09 '18

Was thinking about that. How about relativistic corrections depending on the relative motion of the planets? There's no universal time!

6

u/[deleted] Feb 09 '18

Fuck that mars is now on est everywhere. Any requests for other time zones is out of scope

11

u/PaulMcIcedTea Feb 09 '18

I think you meant to say UTC.

→ More replies (3)

6

u/[deleted] Feb 09 '18

That's a funny of way of saying Nepal Timezone. Give me UTC+4:45 or give me death

2

u/[deleted] Feb 09 '18

And if you thought that was bad, Earth and Mars are not at the same relativistic time rate, so:

Depending on where in its orbit Mars is, the relative time dilation between Earth and Mars will be different, and a clock would appear from Earth to be anywhere between 12.2 ns/second fast and 3.8 ns/second slow

https://www.reddit.com/r/askscience/comments/tz8we/mars_rovers_and_relativity/

2

u/noratat Feb 09 '18 edited Feb 09 '18

Worse, the RTT between Earth and Mars varies continuously between 6 and 44min - so any timestamps you receive have to be be offset by travel time dynamically.

Technically time flows at a dynamically different rate too due to relativity, but earth and Mars velocity differences are pretty small (barely over 50km/s at most).

→ More replies (1)

2

u/[deleted] Feb 09 '18

The very first problem that needs solving is the Martian year, ignoring Earth. The Martian year has 668.59897 Martian days. What does a year even mean when the year is twice as long? Do Martians count 1/2 a year as a full year?

This is a UX problem.

2

u/zeropointcorp Feb 10 '18

The bit that I’m most worried about is that here on Earth, we’re at the bottom of a deeper gravity well, which means that technically a second on Mars is going to be slightly shorter than it is here.

Can you imagine trying to keep timestamps in sync between the two locations...

→ More replies (2)
→ More replies (151)

746

u/lovethebacon 🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛 Feb 09 '18

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.

114

u/Shawnj2 Feb 10 '18

To be serious, I’m pretty sure we would just use Unicode time stamps as dates on Mars.

→ More replies (7)

97

u/showponyoxidation Feb 09 '18

Solid strategy.

31

u/DerkDurski Feb 10 '18

“This feature/program is not available in your planet”

6

u/lovethebacon 🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛 Feb 10 '18

Until the CEO sells it to prospective customers and you have a week to deliver it.

→ More replies (2)

19

u/jcy Feb 10 '18

you truly do deserve your millions of dollars in compensation

3

u/achtagon Feb 10 '18

Hey, not everyone can call CDW every week

→ More replies (1)

9

u/dvlsg Feb 10 '18

Excellent, I've already finished the codebase for it.

→ More replies (1)

4

u/Busti Feb 10 '18

Just interface everything about Time and let other People handle it.
Also you might wanna use dependency injection...

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

978

u/FurryPornAccount Feb 09 '18

Just add another javascript library to support the timezone and call it a day.

418

u/hexagon672 Feb 09 '18

$ npm i --save marstime

491

u/[deleted] Feb 09 '18

87 packages added

297

u/Prison__Mike_ Feb 09 '18 edited Feb 09 '18
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated [email protected]: spacetime@<3.0.0 is no longer maintained. Upgrade to spacetime@^4.0.0
npm WARN deprecated [email protected]: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
... 26 other warnings

152

u/EasyMrB Feb 09 '18

Can we get a combat trauma warning, please?

67

u/corvus_192 Feb 09 '18
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):     
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
→ More replies (1)

128

u/ProgramTheWorld Feb 09 '18

Pulls in 10392 dependencies

0

u/[deleted] Feb 09 '18

[deleted]

→ More replies (2)

19

u/three18ti Feb 09 '18

No space left on device

6

u/thelehmanlip Feb 10 '18

File path exceeds maximum path length.

Oh that happens already.

→ More replies (1)

64

u/Fozefy Feb 09 '18

shivers

50

u/Cubia_ Feb 09 '18

another javascript library

more time zones

Are you trying to make everyone here anxious?

12

u/sim642 Feb 09 '18

moment will handle it for us mortals.

21

u/nicholas_snow Feb 09 '18

They probably will implement GMT planet wide. And have a realistic clock system for common use. It's not that bad an idea, even for us here on Earth, imagine if it were 13:00 everywhere on earth instead of 39 DIFFERENT time zones.

It wouldn't take that much to get used to, I have accidentally told the temperature to someone in Celsius (I'm an American who has to deal with foreign technicians on a daily basis) when I am in the US and used Fahrenheit by accident outside the US.

24

u/ryosen Feb 09 '18

But then it won't always be "5 o'clock somewhere". What am I supposed to do with my whimsical coffee mug and matching cubical mini-poster?

→ More replies (3)

4

u/[deleted] Feb 10 '18

YES, IVE BEEN WANTING THIS FOR AGES.

4

u/nicholas_snow Feb 10 '18

I deal with international companies, weird timezones are my enemy

→ More replies (11)

19

u/[deleted] Feb 09 '18

You are in every fucking sub

3

u/[deleted] Feb 10 '18

And apparently some regular subs too!

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

15

u/Andee1112 Feb 09 '18

Why are you in all of my subreddits???

2

u/Log7152 Feb 09 '18

Sounds good, nothing could ever go wrong with that!

2

u/MotherDick2 Feb 10 '18

call it a day

a sol actually

0

u/[deleted] Feb 09 '18

[deleted]

4

u/ShippingIsMagic Feb 09 '18

was the second 'minutes' supposed to be 'seconds' or am I really confused?

→ More replies (1)

472

u/DeirdreAnethoel Feb 09 '18

But the real question is will they want daylight saving time?

253

u/-Rivox- Feb 09 '18

yes, but different switch for every time zone. And some won't.

106

u/dawnraider00 Feb 09 '18

And don't forget that opposite hemispheres switch I opposite directions.

29

u/VivaLaPandaReddit Feb 09 '18 edited Feb 11 '18

Clocks run counterclockwise in the southern hemisphere, everyone knows that.

7

u/dmanww Feb 10 '18

And different dates for different countries. Also some zones are off by 30min rather than 60. And then there are places like Kiribati who just say "fuck it, rules don't apply to us"

→ More replies (1)

0

u/[deleted] Feb 09 '18

[deleted]

52

u/Bobshayd Feb 09 '18

And then there will be some half-zones.

17

u/mnbvas Feb 09 '18

And quarter zones.

11

u/UnicornRider102 Feb 09 '18

A long time ago people decided that 8-5 was a good work time. And then people decided that 7-4 was a better work time that would allow them to experience more sunlight after work, have more time to buy stuff and travel after work, etc, but instead of getting workplaces to have an earlier work period, they propositioned Congress to adjust the clock for most of the year.

11

u/John_Tacos Feb 09 '18

Mars has a similar tilt to Earth so maybe.

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

124

u/[deleted] Feb 09 '18

Nobody's gonna mention the fact that mars and earth are a varying 5-15 light minutes apart? Dealing with relativity has gotta be nastier than the time zones.

47

u/Draculea Feb 09 '18

So when's Comcast coming through with their ultra fast high speed gaming network, so you can play with friends and family on Mars?

37

u/Godot17 Feb 09 '18

If you're willing to play 48 hour long games of chess, sure.

43

u/mortiphago Feb 09 '18

So a normal civilization game?

12

u/coinaday Ultraviolet security clearance Feb 10 '18

Your civilization games only take 48 hours? Are you playing settler or something?

→ More replies (11)

313

u/kiki_jojo Feb 09 '18

I'm gonna submit a pull request for moment.js

148

u/lukaas33 Feb 09 '18

I imagine that by then, either Js doesn't exist or everything runs on Js

75

u/jexmex Feb 09 '18

By then we should be up to about 100 mainstream js frameworks and NPM will still suck.

0

u/[deleted] Feb 09 '18

[deleted]

21

u/[deleted] Feb 09 '18

TIL CoffeeScript still exists.

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

184

u/skeptic11 Feb 09 '18

7

u/PersonableBiped Feb 10 '18

Thank you so much for sharing this channel! I’m an amateur programmer in my free time and I just spent 2 hours having my mind blown over and over

3

u/[deleted] Feb 10 '18

Damn you! I was going to post the Tom Scott video

0

u/[deleted] Feb 09 '18

[deleted]

65

u/ItWorkedLastTime Feb 09 '18

"Don't re-invent the bicycle, unless you intend to learn more about bicycles". Writing your own timezone library would probably be the best way to learn about all the intricacies that go into it, but yeah, you are totally right.

27

u/aaaaaaaarrrrrgh Feb 10 '18

Writing your own timezone library would probably be the best way to an early, alcohol-poisoning induced, non-accidental death.

9

u/[deleted] Feb 10 '18 edited Feb 10 '18

I use this point to tell people what makes a good programmer. If you’re sitting there trying to reinvent the wheel every time, you’re not a good programmer. Time is money, and the best programmers are the ones who know how to integrate the better code out there with theirs. And there’s always better code. No point on being great at starting from scratch because you shouldn’t start from scratch. The “we can see because we’re standing on the shoulders of giants” is the pillar of programming.

→ More replies (12)

64

u/Popperama Feb 09 '18

We don't need to implement new timezones, just have them use the timezone that Mars is currently over.

38

u/TTTA Feb 09 '18

Sweet Jesus please no

2

u/Tangurena Feb 10 '18

I think I worked for you at a previous job.

→ More replies (1)

60

u/athousandwordsworth Feb 09 '18

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!

12

u/willbill642 Feb 09 '18

good bo- I mean human!

→ More replies (2)

146

u/robolivable Feb 09 '18

I can imagine we'd just work with universal time and not bother with time zones at that point.

119

u/lukaas33 Feb 09 '18

Like seconds since the big bang

126

u/[deleted] Feb 09 '18

about 48 years ago.

68

u/ProgramTheWorld Feb 09 '18

but gravity changes how long a second is

12

u/FlipskiZ Feb 09 '18 edited Sep 21 '25

Garden jumps food people today net community fresh warm across food night pleasant honest calm books minecraftoffline about!

→ More replies (1)

19

u/Hexidian Feb 09 '18

We should just use earth time. It won’t require a massive adaptation and will work just as well as any other system

→ More replies (7)

10

u/doyouevenIift Feb 09 '18

The time would change significantly between when you started saying the time and when you finished.

“What time is it?”

“432,329,528,428,053,153 seconds. Wait, sorry 432,329,528,428,053,167 seconds. Wait...”

→ More replies (2)

22

u/adrianmonk Feb 09 '18

You need local time. How else are you going to schedule lunch? The martian day is 24 hours and 40 minutes long, which means it's a pretty safe assumption that humans will sync their daily routines up with it. You need a form of timekeeping that is relative to that rhythm.

11

u/BlackHumor Feb 09 '18

On Mars, yes, but if we're communicating with Mars from Earth we really ought to be communicating using some more universal sort of time.

→ More replies (1)

9

u/noratat Feb 09 '18

Relativity says hi. Even on Earth we can make atomic clocks accurate enough to detect elevation differences based on clock skew (gravity gets weaker the farther you are from the center of Earth's mass).

Granted real-time communication with Mars is impossible anyways (RTT between 6 and 44min), so maybe doesn't matter that much.

→ More replies (1)

27

u/tookbtc Feb 09 '18

let's assume UTC time

82

u/ss0889 Feb 09 '18

heard the UN is considering getting rid of daylight savings time.

first thought was "man, thats gonna be a fun patch tuesday"

60

u/[deleted] Feb 09 '18

Eu

7

u/ss0889 Feb 09 '18

whoops, thats the one

0

u/[deleted] Feb 09 '18

[deleted]

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

19

u/[deleted] Feb 09 '18

How to farm karma on r/programmerhumor: post @iamdeveloper tweets

16

u/mkalte666 Feb 09 '18

AAAAAAAAAAAAAAAAA[...]AAAAAAAA

15

u/DrSmus Feb 09 '18

GMT+ 1000000

12

u/[deleted] Feb 09 '18

Relevant Tom Scott. https://youtu.be/-5wpm-gesOY

12

u/JayTurnr Feb 09 '18

Although realistically once we colonize other planets it'll make sense to have a different calendar for that planet.

8

u/NattyBumppo Feb 10 '18

I work at JPL and dealing with Mars time is something we do every day. We mostly just reuse internal libraries so we don't have to reinvent the wheel too much. Mars time is usually given as a "local time zone" (Local Mean Solar Time) for each rover, though, so the times for Curiosity and Opportunity are very different. And the dates are based on their landing dates, where Sol 0 is when Curiosity landed whereas Sol 1 is when Opportunity landed. (Yes, they're 0-indexed and 1-indexed, respectively.) And this isn't even mentioning the other timekeeping systems...

https://en.wikipedia.org/wiki/Timekeeping_on_Mars

Something tells me that Elon would just say "fuck it" and use UTC time everywhere.

3

u/WikiTextBot Feb 10 '18

Timekeeping on Mars

Various schemes have been used or proposed for timekeeping on the planet Mars independently of Earth time and calendars.

Mars has an axial tilt and a rotation period similar to those of Earth. Thus it experiences seasons of spring, summer, autumn and winter much like Earth, and its day is about the same length. Its year is almost twice as long as Earth's, and its orbital eccentricity is considerably larger, which means among other things that the lengths of various Martian seasons differ considerably, and sundial time can diverge from clock time more than on Earth.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source | ^Donate ] Downvote to remove | v0.28

6

u/andrewsmd87 Feb 09 '18

I'm ready for the day when the client wants data from mars in real time, and you try to explain how that's not possible due to the distance and light speed and what not, and they just get angry because you can't do what they're asking.

2

u/o0Rh0mbus0o Feb 10 '18

6-44 minute ping times if you use an ideal system. Hoo boy.

10

u/wotanii Feb 09 '18

Bonus: Timestamps don't work anymore at this scale, because planets move too fast relative to each other

→ More replies (1)

5

u/eMeSsBee Feb 09 '18

How long before we use one time per planet that's standardized for solar systems.

3

u/[deleted] Feb 09 '18

3742.42912 STU (Standard Time Units)

→ More replies (1)

9

u/dark-kirb Feb 09 '18 edited Feb 09 '18

martian time: number of 1/86400 martian solar days since the landing of the first manned vehicle on mars

Time zones: the 0th meridian is the meridian where that space vessel landed. Each time zone is 15° wide and the center is a multiple of 15°. Except for the one that would be at ±180°, west of that meridian is +12mh and east of it is -12mh, basically it's the date line. Oh and no dst whatsoever. The poles are incredibly difficult to have a decent time zone distance, so i'd say the poles are always MMT+0

1

u/SnakeMilker Feb 09 '18

Hey Ryan

1

u/cheese-power Feb 09 '18

Do you follow this guy on twitter? He’s hilarious

→ More replies (1)

3

u/Belinder Feb 09 '18

Do you even DateTime.ToLocalTime()

3

u/nektro Feb 09 '18

oh look, another @iamdeveloper post

3

u/[deleted] Feb 10 '18

Na fuck that mars got to use utc

4

u/[deleted] Feb 09 '18

I'd like to see if we adapt European Calendar formatting or if Martians decide, it's a better idea to go year first.

2

u/donutnz Feb 09 '18

Let's just do absolute mars time. Like unix time. Pick a moment (e.g. when the first probe landed or the first footstep) and start a counter. This is mars time. No more I'll meet you at 1pm this thursday (meaning the thursday that will occur immediately after the current day). I will meet you at 950000000. And make it damn decimal. E.g. this takes 1 and a half kiloseconds (ks) to cook (25 earth minutes).

2

u/bob84900 Feb 09 '18

I feel like as humans colonize other plants and eventually star systems, we'll just settle on using UTC everywhere. Some people will go to bed at 13:00 and some at 02:00, depending on where they live, and that's just how it'll be.

At least that's what I hope...

2

u/[deleted] Feb 09 '18

The SMTP is busted again on the server....#elon

2

u/nickiter Feb 09 '18

If sci fi has taught me anything it's that space is on Zulu time.

2

u/b4ritek Feb 10 '18

Mars time is going to be buggy

2

u/otakuman Feb 10 '18

You think a mere timezone will do? We're talking different year and day lengths, leap years, an absolute fucking nightmare.

2

u/CryptAxe Feb 10 '18

This is the best in a while, time is so hard to deal with

1

u/wallawalla_ Feb 09 '18

eli5, what's the big deal with timezones and programming?

8

u/[deleted] Feb 09 '18 edited Feb 09 '18

Lets say you want to calculate the duration of a flight. If everything is in the same time zone you simply calculate: landing time - departure time. But now you are traveling from London to Tokyo. You simply can't calculate landingTime-departureTime. You have to use Time Zones. And then you have to check if it's daylight saving time. What happens if the flight departs in summer time but lands in winter time because during the flight, the day light saving switch happens.

In most cases there are Libraries / built in features for this. But while programming you have to think "Are timezones relevant here?".

TLDR: It's very cumbersome.

ETA: Oh, and then there is the scenario when there are different dates. Like when it is January 1st 8pm in Europe, it's already January 2nd in Japan. So you probably have to think about that case as well

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

1

u/LordOfSun55 Feb 09 '18

Timezones are the least of our problems. The Internet on Mars in going to be a fucking nightmare with the 20 minute lightspeed lag.

1

u/A_Light_Spark Feb 09 '18

lol if that is bad... wait until we have interstellar travel.

1

u/RSNKailash Feb 09 '18

Different time rate, one martian day is not 1 earth day ;)

2

u/toasterbot Feb 10 '18

At 24:37:22, it's tempting to basically use our current time system.

→ More replies (1)

1

u/zmaile Feb 09 '18

This actually bring to the surface my anger at the current time system.

  • Why would so much effort be put into 12:00 being the middle of the day at all points on the earth? And then DST fucks it all up anyway and make 13:00 the middle of the day. In some areas. And even then it's only accurate to the nearest hour. And that assumes that a country chooses the right timezone for their actual location. And that the location actually has day/night. Why can't we just accept that 07:00 is the middle of the day somewhere and 21:00 is the middle of the day somewhere else? Then everyone can have the same goddamn timezone and we don't have to have a metric hour long discussion with every person that once caught a plane and had a 36 hour day and refuse to adjust their watch from holiday time.

  • Okay, so timezones at least have a definition when on earth, even if it's ridiculous. How do we as a space-faring species not have a space timezone? Are we too stuck with waiting for the rain-gods to bless us with a great bounty this harvest season that we can't comprehend not having a need for arbitrary celestial movements? Or are we just worried that einstein's relativity uses scary maths? It can't be any worse than the convoluted timezones we have currently.

  • Why are there 60 minutes (usually), 24 hours (sometimes), 60 seconds (except when it isn't), and then we go to metric for sub-second intervals? Why can't we go to a metric system completely? e.g. use UNIX time everywhere. - Okay, this one is wishful thinking, i know it'd screw with how people say I'll see you at lunch in 4 days". But I still hate the approximate 365/12/30/24/60/60/metric cycles with a passion.

In conclusion, fuck the 4th dimension. And biological clocks.

Also I feel much better now.

→ More replies (1)

1

u/[deleted] Feb 09 '18

A new epoch

1

u/roguesith Feb 09 '18

Space is the perfect place to just use utc. Until the astrophysicists say something like spacetime has leap seconds every 5th second except for every 60th leap second where it's a leap minute. Or various governments start claiming areas of space and link them to their own timezones.

1

u/elSenorMaquina Feb 09 '18

I like to think that getting to mars will be our second chance to start a civilization from scratch, optimized to our needs.

Take for example cities. Most old cities have chaotic street layouts, while cities like NY are a nicely arranged grid. We can't do that with already existing cities, but mars is sort of a blank canvass.

1

u/oxilite Feb 09 '18

I once heard Vince Cerf give an awesome TED talk on the problems with interplanetary networking.

1

u/blastslowbob Feb 09 '18

UNIVERSAL CENTURY 1

1

u/[deleted] Feb 09 '18

I totally understand this... Fucking timezones... Please cancel daylight savings time! Please please!!!

1

u/shroudedwolf51 Feb 09 '18

They could do what I wish Earth would do. Get rid of the timezones and have consistent time all around.

Yes, some people would be arriving at their graveyard shift at 14:00, but does it really make that much of a difference? You're still physically operating the same schedules, just without the need to constantly fiddle with clocks while traveling.

1

u/[deleted] Feb 09 '18

Whoa, I never once considered this. I'm scared now.

1

u/Gudin Feb 09 '18

It's all good, until you need it to work with java.util.date

1

u/I_might_be_weasel Feb 09 '18

The whole planet will probably just be on Zulu time.

1

u/1ChubRub1 Feb 09 '18

“ mArS NUmBa OnE”

1

u/sidhuG Feb 09 '18

Make sure servers don’t get over heated.

1

u/FinFihlman Feb 10 '18

There is a solution though and that is to just drop the concept of timezones.

A single universal time with everywhere the same time.

→ More replies (3)

1

u/[deleted] Feb 10 '18

Interesting. How to convert when planets have different orbits and rotation periods???

1

u/[deleted] Feb 10 '18

So do people still think normal/not rich people will be able to afford to go to Mars?

Why does anyone care about this, really?

→ More replies (3)

1

u/BlowsyChrism Feb 10 '18 edited Feb 10 '18

Probably a new class...in addition to language and timezone....planet... Edit because this programmer can't fucking spell.

3

u/Scerrybug Feb 10 '18

Time zones are already made for mars, language will most likely be mostly English until other countries join us

→ More replies (2)

1

u/[deleted] Feb 10 '18

Soon, we will need to select what planet we live on from a drop-down menu

1

u/drnfc Feb 10 '18

XD I never thought about that this is fucking gold

1

u/alligatorterror Feb 10 '18

Not If You go metric!

1

u/ulyssessword Feb 10 '18

Related: Crime on Mars by Arthur C Clarke

1

u/shiatian Feb 10 '18

So angry

1

u/Hafas_ Feb 10 '18

#UTCEverywhere

1

u/ABrownApple Feb 10 '18

Will it have summer and winter time?

1

u/Azereos Feb 10 '18

PROBLEM:

You have to account for general relativity! A second on Earth is slightly longer than a second on Mars. Einstein's theory of general relativity states that:

Gravity isn't just a force that one object places on another, but an actual distortion in the continuum known as space-time

1

u/[deleted] Feb 10 '18

Somebody needs to go ahead and throw a question about how we should do this up on stack overflow. We need time to let all the assholes sort out the best answer so I can copy and paste.

1

u/[deleted] Feb 10 '18

You’d be surprised, a lot of companies whose primary income comes from factories can’t ever shut them down to upgrade because it would mean their primary means of income is halted.

1

u/oshaboy Feb 11 '18

If that isn't enough. 6 minute ping times unless you break the laws of physics.