r/ProgrammerHumor • • May 17 '21

Timezone Support

Post image
22.3k Upvotes

460 comments sorted by

View all comments

1.1k

u/[deleted] May 17 '21

I know this is a joke, but the ISS uses UTC, so the people on Mars might use that for a while.

702

u/Rainmaker526 May 17 '21

Weird to put a semi serious reaction here, but they wouldn't for long. The length of a day on Mars is very different then one on earth. Assuming they'd want to keep 12:00 as the time when the sun is at it's highest point, that would be out of sync almost immediately.

This gives rise to another programming problem; how about a variable number of hours in a day, or a variable number of seconds in an hour? Or a variable length of a second?

25

u/[deleted] May 17 '21

[removed] — view removed comment

4

u/Dane1414 May 18 '21

Yes but gravity is lower on Mars which affects the passage of time, so the cesium atom on Mars will oscillate more often than the cesium atom on Earth. So, when a second passes on Earth, slightly more than one second passes on Mars.