lkml.org 
[lkml]   [2009]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Bug: Status/Summary of slashdot leap-second crash on new years 2008-2009
Alan Cox wrote:
>> zoneinfo. Epoch remains the start of 1978; seconds between any two
>> dates included leap-seconds and no special kernel support is required.
>>
>
> Your time() values then disagree with the rest of the universe. See POSIX
> 1003.1 Annex B 2.2.2. if you want the whole story,
>

I can't find this, except possibly (but maybe not) at a cost from ieee,
and I'm not inclined to pay. If you could post a sentence from this
annex it might help me to find it.


> For any given time based on the 1970 Epoch there is a single correct
> answer for the translation between each value and a UTC time.

This confused me because the sense that I've got from this thread
suggests otherwise. Unless I've misunderstood, the time() value for the
first second of 2009 is one greater than the value for the second to
last second of 2008 (i.e. 23:59:59), which means that there is no
translation for the last second. Put another way, my understanding of
what's been said is that the epoch is effectively increased by one
second for each leap second. Have I got this wrong?


\
 
 \ /
  Last update: 2009-01-05 20:21    [W:0.171 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site