<div dir="ltr"><div>Perhaps accept leap seconds at the ends of months other than June or December, but issue a warning? (And similarly for negative leap seconds?)</div><div><br></div><div>    @dashdashado<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Oct 6, 2018 at 7:42 PM Paul Eggert <<a href="mailto:eggert@cs.ucla.edu">eggert@cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hal Murray writes:<br>
<br>
> A leap second other than June or December is probably an error in the input <br>
> data.<br>
<br>
Only if the input is intended to be the current official list of leap seconds. <br>
The recent code change was intended to make the code match the official rules <br>
better, which lets us better test software on outlandish-but-valid input. It's <br>
like the long-existing tzdb code that supports negative leap seconds, something <br>
that would also be an input error in data intended to be the official list.<br>
<br>
Steve Allen wrote:<br>
> This is definitely true in this era.  Assuming (bad thing to do) that<br>
> rotation of the crust does not undergo another strong deceleration the<br>
> two dates per year should be enough for the next 40 years.<br>
<br>
My eyeballing of the "extrapolated long-term trend" of Figure 18 of Stephenson <br>
et al. 2016 says that 2 leap seconds per year should be enough until 2300 or so.<br>
<br>
This prediction is based entirely on historical data, though, and global warming <br>
is throwing another monkey wrench into such predictions. Although there's not a <br>
consensus on how global warming should affect length of day, you might be amused <br>
to read Mazzarella & Scafetta 2018, which reports that since 1850 the length of <br>
day has been negatively correlated with the global sea surface temperature, <br>
which suggests that global warming should mean that leap seconds will be rarer. <br>
If they're right, we may have to wait even longer than Stephenson et al. suggest <br>
before worrying about leap seconds other than June or December.<br>
<br>
Stephenson FR, Morrison LV, Hohenkerk CY. Measurement of the Earth's rotation: <br>
720 BC to AD 2015. Proc Royal Soc A. 2016 Dec 7;472:20160404. <br>
<a href="https://dx.doi.org/10.1098/rspa.2016.0404" rel="noreferrer" target="_blank">https://dx.doi.org/10.1098/rspa.2016.0404</a><br>
<br>
Mazzarella A, Scafetta N. The Little Ice Age was 1.0–1.5 °C cooler than current <br>
warm period according to LOD and NAO. Clim Dyn. 2018. <br>
<a href="https://doi.org/10.1007/s00382-018-4122-6" rel="noreferrer" target="_blank">https://doi.org/10.1007/s00382-018-4122-6</a><br>
</blockquote></div>