Re: [PATCH 9/9] rust: time: add ktime_get_real_seconds

From: FUJITA Tomonori

Date: Fri Oct 30 2026 - 06:09:06 EST


On Fri, 30 Oct 2026 07:57:50 +0000
Mike Lothian <mike@xxxxxxxxxxxxxx> wrote:

> So it's the case you described, Tomonori: the format is fixed outside
> the kernel, by the dock's firmware, and what the caller wants is an i64
> of seconds since the epoch. It never gets subtracted from anything, so a
> seconds based Instant would only be there to be converted straight back

Right, you only need an i64 of seconds since the epoch and do no
arithmetic or comparison on it. A type is useful when it guards those
operations, and there are none here. So the plain function is fine
with me. If a caller that needs them shows up later, we can add a type
then.