[LEAPSECS] Compact encoding of the leap seconds list

Tony Finch dot at dotat.at
Wed Jan 11 16:22:55 EST 2017


Tony Finch <dot at dotat.at> wrote:

> The plain text version is
>
> 6+6+12+12+12+12+12+12+12+18+12+12+24+30+24+12+18+12+12+18+18+18+84+36+42+36+18+5?

I've changed the binary version to optimize for the common case of
positive leap seconds some multiple of 6 months apart, which makes it
possible to fit the list in 15 bytes.

        00111111 12113431 2112229D 5652F4

Details at http://fanf.livejournal.com/148947.html

Tony.
-- 
f.anthony.n.finch  <dot at dotat.at>  http://dotat.at/  -  I xn--zr8h punycode
Shannon: Northwest 5 to 7, increasing gale 8 or severe gale 9 later. Very
rough or high. Wintry showers. Good, occasionally poor.


More information about the LEAPSECS mailing list