DEV Community

Discussion on: Fixing a 40-year-old Software Bug

Collapse
 
kallmanation profile image
Nathan Kallman

Whenever I hear about building a city on Mars, all I can think is: "hope I'm not the one who has to make datetime conversions between planets..."

Collapse
 
ovid profile image
Ovid

On Mars, the Sol (Martian day) is 24 hours, 39 minutes, and 35 seconds long. When Kim Stanley Robinson wrote the epic Red Mars Trilogy, he took that extra 39 and a half minutes and called it the "timeslip." Clocks on Mars stop at that time. There is effectively no time for just over half an hour.

When I first read that, I immediately thought that contractual service level agreements (SLAs) are going to be a legal nightmare.

You: Your honor, the SLA guarantees an alert within five minutes of an outage.
Judge: And what time did the outage occur?
You: During the timeslip.
Judge: Case dismissed.

My next thought was Kim Stanley Robinson has never been a programmer, or at least never worked with dates before.

Collapse
 
kallmanation profile image
Nathan Kallman • Edited

Amazing... reminds me of the "Leap smear" technique to get rid of leap seconds. I'm sure someone is going to try to smear away 39 minutes and 35 seconds at some point 😞.

Especially fun will be having to account for time dilation as the decades roll on.