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)37
97
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
9
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)2
u/Tangurena Feb 10 '18
This book has a whole chapter on Mars days and time.
https://www.amazon.com/Standard-Date-Time-Library-Programming/dp/0879304960→ More replies (1)
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
Feb 09 '18
87 packages added
→ More replies (1)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 warnings152
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"})128
19
→ More replies (1)7
64
50
u/Cubia_ Feb 09 '18
another javascript library
more time zones
Are you trying to make everyone here anxious?
12
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)→ More replies (11)4
19
15
3
2
2
0
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.
→ More replies (1)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"
0
Feb 09 '18
[deleted]
52
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.
→ More replies (1)11
124
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.
→ More replies (11)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?
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
→ More replies (3)13
u/wtfaremyinitials Feb 09 '18
Relevant humorous conference talk https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript
→ More replies (1)
184
u/skeptic11 Feb 09 '18
32
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
3
0
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.
→ More replies (12)9
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.
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
→ More replies (1)2
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!
→ More replies (2)12
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
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.
→ More replies (1)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.
27
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"
→ More replies (1)60
19
16
15
12
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
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
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
3
3
3
4
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
2
2
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
1
u/wallawalla_ Feb 09 '18
eli5, what's the big deal with timezones and programming?
→ More replies (1)8
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)
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
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
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
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
1
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
1
1
1
1
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
1
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
1
1
1
1
1
1
1
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
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
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.
2.6k
u/[deleted] Feb 09 '18
Imagine how actually terrifying it would be to properly implement and support this and keep it in tune.