Re:OpenBSD Adds Support for Coordinated Mars Time (MTC)
by yellowapple on Thursday April 01, 2021 @04:34PM
(#26665671)
Probably best to just drop the notion of "days", "years", etc. entirely, and instead just track the number of kiloseconds, megaseconds, etc. since the Unix Epoch.
[ Parent
| on HN ]
Re:OpenBSD Adds Support for Coordinated Mars Time (MTC)
by jhgorrell on Thursday April 01, 2021 @05:06PM
(#26666033)
In the novel "A Deepness in the Sky" by Vernor Vinge, the characters tell time this way. I had to do some math early in the book to get a feel for what 1Msec & 1Gsec was.
In addition, they also keep track of their cold sleep time, because if you want to meet your spouse 50 years from now, you want to try and keep the same relative age.
Re:OpenBSD Adds Support for Coordinated Mars Time (MTC)
by yjftsjthsd-h on Thursday April 01, 2021 @04:38PM
(#26665722)
I was under the impression that the OS did only track time in seconds since the epoch, and whenever you see something else it's just the software translating for human convenience. If that's the case, then it this doesn't really make sense; humans will want something friendlier than epoch time on Mars, too.
Re:OpenBSD Adds Support for Coordinated Mars Time (MTC)
by bonzini on Thursday April 01, 2021 @04:57PM
(#26665916)
Sort of. Unix time does not count leap seconds, all days are 86400 seconds long in Unix time. So the actual number of seconds since the epoch is a bit larger than what time() returns.
I don't know how Windows deals with leap seconds (its epoch is in 1601 or something like that). Edit: it doesn't, the clock goes 1 second ahead of UTC and it's then fixed by NTP.
Re:OpenBSD Adds Support for Coordinated Mars Time (MTC)
by pedrocr on Thursday April 01, 2021 @06:22PM
(#26666976)
So time() is actually days since epoch with 1/86400 precision. That makes the Google solution to smear leap seconds with NTP instead of making them explicit make even more sense.