<div dir="ltr"><div><div>&gt; Perhaps Arthur David Olson or Bradley White can take a look at this, as they&#39;re the <span class="gmail-il">leap</span> second gurus for tz.<br>&gt; I&#39;ve never tested negative <span class="gmail-il">leap</span> seconds.<span class="gmail-im"><br><br></span></div><span class="gmail-im">Using 23:59:59 for a negative leap second seems to do the right thing, as witness the typescript at the bottom of this message.<br><br></span></div><span class="gmail-im">    @dashdashado<br></span><br>Script started on Fri, Apr  7, 2017  2:37:27 PM<br><pre class="gmail-western">$ grep 2020 leapseconds<br>Leap        2020        Jun        30        23:59:59        -        S<br>$ make install TOPDIR=$PWD/tmp REDO=right_only &gt;&amp;-<br>$ ./zdump -v America/New_York | grep 2020<br>America/New_York  Sun Mar  8 06:59:59 2020 UT = Sun Mar  8 01:59:59 2020 EST isdst=0 gmtoff=-18000<br>America/New_York  Sun Mar  8 07:00:00 2020 UT = Sun Mar  8 03:00:00 2020 EDT isdst=1 gmtoff=-14400<br>America/New_York  Tue Jun 30 23:59:58 2020 UT = Tue Jun 30 19:59:58 2020 EDT isdst=1 gmtoff=-14400<br>America/New_York  Wed Jul  1 00:00:00 2020 UT = Tue Jun 30 20:00:00 2020 EDT isdst=1 gmtoff=-14400<br>America/New_York  Sun Nov  1 05:59:59 2020 UT = Sun Nov  1 01:59:59 2020 EDT isdst=1 gmtoff=-14400<br>America/New_York  Sun Nov  1 06:00:00 2020 UT = Sun Nov  1 01:00:00 2020 EST isdst=0 gmtoff=-18000<br>$ exit<br>exit<br>Script done on Fri, Apr  7, 2017  2:38:11 PM</pre>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 4, 2017 at 6:33 PM, Paul Eggert <span dir="ltr">&lt;<a href="mailto:eggert@cs.ucla.edu" target="_blank">eggert@cs.ucla.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 04/04/2017 09:02 AM, Chris Woodbury via tz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I reviewed the C code and, it seems to me, the transaction<br>
added should actually be for the second before, 23:59:58,<br>
as the transaction itself causes 23:59:59 to be skippedaltogether.<br>
</blockquote>
<br></span>
Perhaps Arthur David Olson or Bradley White can take a look at this, as they&#39;re the leap second gurus for tz. I&#39;ve never tested negative leap seconds.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, I&#39;ve an AWK script that uses the IERS file Leap_Seconds.dat<br>
rather than the NIST leap-seconds.listfile.<br>
</blockquote>
<br></span>
Although that would be a better technical solution, in the past we&#39;ve shied away from it because the IERS file is copyrighted and we and we and our downstream users don&#39;t clearly have permissions to copy and redistribute it.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
USNO MAIA also has straight list<br></span>
of leap-seconds in a different format. &lt;<a href="http://maia.usno.navy.mil/ser7/leapsec.dat" rel="noreferrer" target="_blank">http://maia.usno.navy.mil/ser<wbr>7/leapsec.dat</a>&gt;<br>
</blockquote>
<br>
Thanks, I was not aware of this file. It is public-domain, so perhaps we could use it. Is it updated in a timely fashion when new IERS bulletins are published? And is that web server highly available? These have been sticking points for the NIST file.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another good, comprehensive article is &quot;The leap second: its history<br>
and possible future&quot; by R.A. Nelson, et al, from Metrogia Vol 38,<br>
pp. 509-529 (2001).  PDF available (with permission) at:<br>
<br>
&lt;<a href="https://www.cl.cam.ac.uk/~mgk25/time/metrologia-leapsecond.pdf" rel="noreferrer" target="_blank">https://www.cl.cam.ac.uk/~mgk<wbr>25/time/metrologia-leapsecond.<wbr>pdf</a>&gt;<br>
</blockquote>
<br></span>
Yes, we link to that in tz-link.htm.<br>
<br>
</blockquote></div><br></div>