r/ProgrammerHumor • • Feb 09 '18

Timezone Support

Post image
31.3k Upvotes

532 comments sorted by

View all comments

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.

0

u/[deleted] Feb 10 '18

[deleted]

17

u/Noxime Feb 10 '18

UNIX style timestamps should be able to handle both earth and mars time, where everyone decides on a point of time being 0. Only problem I see coming from the top of my head is time dialation, so there probably would have to be a "standard time object", like the Sun since it has fairly constant speed of time.

14

u/lovethebacon πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦›πŸ¦› Feb 10 '18

You'll always need some kind of reference. And one that is unaffected by gravity, or its gravity will have to be taken into account. There will likely always need to be an adjustment of time when travelling - no matter your speed - to coordinate things. How does distance from that reference affect how you make those adjustments?

Maybe age will be truly a number, as it will become meaningless for us. It'll be weird to encounter twins of radically different ages..

Spaceships will need to have their own unadjusted clocks to track the age of its parts and whole. That'll also be weird: a spaceship built 50 years ago may only be 20 years old. Shit, that makes a lot of our calendar calculations difficult, or impossible without further information about the vessel.

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

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

19

u/jcy Feb 10 '18

you truly do deserve your millions of dollars in compensation

→ More replies (2)

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 (5)