Re: [LEAPSECS] Stupid question from programmer: Why not just eliminate ALL UTC corrections ?

From: Poul-Henning Kamp <phk_at_haven.freebsd.dk>
Date: Thu, 04 Aug 2005 08:18:55 +0200

In message <42F1AC33.4000403_at_moorecad.com>, Scott Moore writes:

>I agree, it would require that computers keep an "almanac" of the past.
>I don't think that's onerous for a computer. First of all, the operating
>system only needs one copy of it, since all file times would be in
>TAI. The form of it can be a table, or can be a polynomial approximation,
>or a combination thereof.
>
>This is already true. If you take Unix time, a 32 bit signed number,
>or about 2 billion seconds, which is corrected to read the current time,
>its going to be wrong for the Unix Epoch (Jan 1, 1970) by about 24 seconds
>(according to the nearest table I could find of leap seconds).

Most if not all modern UNIXes already have the table of leapseconds.

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Received on Wed Aug 03 2005 - 23:19:09 PDT

This archive was generated by hypermail 2.3.0 : Sat Sep 04 2010 - 09:44:55 PDT