From: "Joshua Peisach" <jpeisach@ubuntu.com>
To: <linux-kernel@vger.kernel.org>,
"John Stultz" <jstultz@google.com>,
"Thomas Gleixner" <tglx@kernel.org>,
"Stephen Boyd" <sboyd@kernel.org>, <linux-clk@vger.kernel.org>
Subject: [RFC] Timekeeping for other planets
Date: Tue, 26 May 2026 09:59:30 -0400 [thread overview]
Message-ID: <DISNUOIOA8JK.2K904WSZH2X9T@ubuntu.com> (raw)
Hi all,
For a while I've thought about timekeeping on other planets. If humans
ever make it to other planets, there will likely be other systems for
keeping track of time, because the length of a day is not the same
across all planets. Mars, for example, has a longer day than Earth.
There are some proposed systems for timekeeping on Mars, the most
interesting one being the Darian calendar system[1], but there are
things like "Mars Sol Date" and Coordinated Mars Time (MTC).
So my internal, curious and enthusiastic personality lead me to try
making a C library that would try to handle time and date conversions
for other planets. But it actually gets quite difficult and confusing,
because (to save you the time and story) there ends up being "so what is
an Earth second and what is a Mars second"?
Now that I've made some kernel contributions (I still consider myself a
newbie), I think about how there may actually be good reasons for trying
to handle non-Earth times in the kernel, compared to the silly people
like me having their timekeeping systems in userspace. For example,
things like log timestamps. A machine that is running Linux on another
planet (I know, it's ambitious, but humor me), will report events in
terms of seconds. But, that's in terms of Earth seconds. For humans, it
would make sense to use a time system that applies to Mars for its own
calendars. So if someone is reading the logs and they see "one million
seconds", how would they know exactly when the message occurred? One
million Earth seconds does not equate to one million Mars seconds.
(I try not to think about the "how long is a second" thing..)
My point is, if humans adopt timekeeping systems for other planets,
there may (or may not?) be a good reason for the kernel to keep track
of time outside of Earth.
Now, I am being ambitious, very optimistic, and potentially delusional
for thinking that people would want to use other timekeeping systems in
other planets, and still have Linux be around in the far future, and
choose to have timekeeping in the kernel instead of in userspace. But,
I know I'm not the only person interested in this topic. There is NASA's
Mars24 Sunclock[2] which does track time in terms of hours, minutes and
seconds, but at the rate that it does on Mars.
So, the problem: There is currently no way to handle or provide
timekeeping on other planets, aside from conversions. But maybe that
should only stay in userspace. The users affected: well, as of writing,
astronomers and space enthusiasts, looking to track events and time
using other planetary timekeeping systems and calendars.
I admittedly don't know much about timekeeping in the kernel, but there
are functions for atomic time, which could actually get some use!
Anyways, I thought I'd share this idea and ask for opinions. I think
it's a fun idea.
[1]: https://en.wikipedia.org/wiki/Timekeeping_on_Mars
[2]: https://www.giss.nasa.gov/tools/mars24/
-Josh
next reply other threads:[~2026-05-26 13:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 13:59 Joshua Peisach [this message]
2026-05-26 20:14 ` [RFC] Timekeeping for other planets John Stultz
2026-05-26 21:13 ` Joshua Peisach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DISNUOIOA8JK.2K904WSZH2X9T@ubuntu.com \
--to=jpeisach@ubuntu.com \
--cc=jstultz@google.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sboyd@kernel.org \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox