[coyotos-dev] coyotos.sleep, sleepTill, the epoch

Jonathan S. Shapiro shap at eros-os.com
Tue Feb 6 22:22:09 CST 2007


On Tue, 2007-02-06 at 23:45 +0100, Valerio Bellizzomi wrote:
> On 06/02/2007, at 2.45, Jonathan S. Shapiro wrote:
> 
> >Neither.
> >
> >The "epoch" is not defined in the spec, but it is similar to the UNIX
> >epoch. Time starts at midnight on Jan 1 1970. See the wikipedia article:
> 
> Yes it is clear, but this not what I meant. I meant "uptime" which
> obviously starts somewhere in system bootstrap.

Where are you seeing this in the spec? I don't think that the interface
reports uptime anywhere.

> 
> >
> > http://en.wikipedia.org/wiki/Unix_time
> 
> The relevant part of this discussion is:
> 1. If the TAI-based variant is used, we can divide unix time by 86400, the
> result is number of days since epoch. Because TAI has no leap seconds, it
> follows the Resolution B1 of IERS (see:
> http://www.iers.org/MainDisp.csl?pid=98-110),
> 2. Use 64 bits signed integer data type to represent unix time numbers,
> this fixes the Year 2038 problem.

We are using 64 bit quantities. We are NOT using TAI (which is busted).


shap



More information about the coyotos-dev mailing list