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.

0

u/[deleted] Feb 09 '18

[deleted]

0

u/[deleted] Feb 09 '18

[deleted]

421

u/Overlordduck2 Feb 09 '18

Agreed. Best date.

82

u/[deleted] Feb 10 '18

You might even say it's epoch.

→ More replies (1)

105

u/[deleted] Feb 09 '18

let's make the counter 64 bits this time

48

u/myrrlyn Feb 09 '18

i128 or bust

61

u/Lurker_Since_Forever Feb 09 '18

Signed 64 is already way way longer than the age of the universe up to this point. Like, in the trillions of years. More than we would ever need, but for real this time. None of that 640k of RAM bullshit.

64

u/heeen Feb 09 '18

That's why you make it microseconds or nanoseconds resolution

→ More replies (11)
→ More replies (8)
→ More replies (1)
→ More replies (5)

386

u/BlackDeath3 Feb 09 '18

January 1, 1970 01:00 GMT it is!

0

u/[deleted] Feb 09 '18

[deleted]

57

u/BlackDeath3 Feb 09 '18

But if we do that, everybody gets to be an hour younger. What's the big deal?

30

u/004413 Feb 10 '18

definitely how it works

48

u/Bainos Feb 10 '18

Breaking news: the computer science community unanimously decided that everyone is now an hour younger, and that every events that occurred between 1970-01-01T00:00 and 1970-01-01T01:00 will be rescheduled over the following hours.

"It's really the only way, otherwise the task will be pretty much impossible" said one of the decision makers when our journalists asked him what made this decision sound. He then added "If you don't agree with this, I swear we will reprogram your smartphone to ring every 30 minutes between sunset and sunrise."

→ More replies (1)
→ More replies (2)
→ More replies (20)
→ More replies (66)
→ More replies (14)

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?

0

u/[deleted] Feb 09 '18

[deleted]

43

u/rooktakesqueen Feb 09 '18

I expect this to feature in Monday's comic...

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

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.

→ More replies (3)
→ More replies (116)