[coyotos-dev] coyotos.sleep, sleepTill, the epoch
Valerio Bellizzomi
devbox at selnet.org
Tue Feb 6 16:45:38 CST 2007
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.
>
> 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.
>
>for a discussion of UNIX time.
>
>The value intended at that interface is comparable to a UNIX timeval or
>timespec (we need to pick a position on that).
>
>shap
>
>On Tue, 2007-02-06 at 02:38 +0100, Valerio Bellizzomi wrote:
>> I am unclear how "the epoch" is defined:
>>
>> 1. from machine power on (hardware clock),
>> 2. somewhere during *system* bootstrap
>>
>> ?
>>
>> val
More information about the coyotos-dev
mailing list